Skip to content

Commit

Permalink
sr: fix deleting an SR l2 steering policy
Browse files Browse the repository at this point in the history
Type: fix
Signed-off-by: Ahmed Abdelsalam <[email protected]>
Change-Id: I9e98b1622785e58484bf316ef491e44cfb06bcb7
  • Loading branch information
ahsalam authored and otroan committed Oct 10, 2019
1 parent 709dad3 commit a6b93ea
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/vnet/srv6/sr_steering.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,13 @@ sr_steering_policy (int is_del, ip6_address_t * bsid, u32 sr_policy_index,
else if (steer_pl->classify.traffic_type == SR_STEER_L2)
{
/* Remove HW redirection */
vnet_feature_enable_disable ("device-input",
"sr-policy-rewrite-encaps-l2",
sw_if_index, 0, 0, 0);
int ret = vnet_feature_enable_disable ("device-input",
"sr-pl-rewrite-encaps-l2",
sw_if_index, 0, 0, 0);

if (ret != 0)
return -1;

sm->sw_iface_sr_policies[sw_if_index] = ~(u32) 0;

/* Remove promiscous mode from interface */
Expand Down

0 comments on commit a6b93ea

Please sign in to comment.