summaryrefslogtreecommitdiff
path: root/pbrd/pbr_map.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2018-03-26 19:16:09 +0000
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-04-06 13:22:43 -0400
commit49027ce8568ca773b0fc441e4abbf71d0d605c2c (patch)
treeff042cafbaa7c32454c178dfb410855f01419ff7 /pbrd/pbr_map.c
parenta1b7005bf472981df256f57f72bf16176727d021 (diff)
pbrd: adjust/remove the rule correctly when dst and/or src removed
When the last match criteria was removed (dst-ip or src-ip), we were not deleting the rule correctly for ipv6. This fix retains the needed src-ip/dst-ip during the pbr_send_pbr_map process so the appropriate information is available for the rule delete. Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_map.c')
-rw-r--r--pbrd/pbr_map.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/pbrd/pbr_map.c b/pbrd/pbr_map.c
index 5962509e82..ea79320a71 100644
--- a/pbrd/pbr_map.c
+++ b/pbrd/pbr_map.c
@@ -527,13 +527,6 @@ void pbr_map_check(struct pbr_map_sequence *pbrms)
__PRETTY_FUNCTION__, pbrm->name, pbrms->seqno, pbrms->reason);
if (pbrms->reason == PBR_MAP_VALID_SEQUENCE_NUMBER) {
- if (pbrms->installed) {
- install = false;
- for (ALL_LIST_ELEMENTS_RO(pbrm->incoming, inode, pmi)) {
- pbr_send_pbr_map(pbrms, pmi, install);
- }
- install = true;
- }
install = true;
DEBUGD(&pbr_dbg_map, "%s: Installing %s(%u) reason: %" PRIu64,
__PRETTY_FUNCTION__, pbrm->name, pbrms->seqno,