diff options
author | Yashaswini Raghuram Prathivadi Bhayankaram <yashaswini.raghuram.prathivadi.bhayankaram@intel.com> | 2019-02-26 19:35:17 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2019-03-22 11:20:05 -0400 |
commit | 26069b448e2db6d3e03ae9dd1f468447794f62fd (patch) | |
tree | 94e366ff05e1592904f07b6b348dd1c9c0b76859 /drivers/net/ethernet/intel/ice/ice_switch.c | |
parent | b58dafbc6f1089942c1e74b8ab9c616fe06dbfac (diff) |
ice: Set LAN_EN for all directional rules
The LAN_EN bit for a switch rule determines if the packet can go out
on the wire or not. Set the LAN_EN flag in the switch action for all
directional rules.
Signed-off-by: Yashaswini Raghuram Prathivadi Bhayankaram <yashaswini.raghuram.prathivadi.bhayankaram@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_switch.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_switch.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_switch.c b/drivers/net/ethernet/intel/ice/ice_switch.c index 22a14e2da94f..7dcd9ddf54f7 100644 --- a/drivers/net/ethernet/intel/ice/ice_switch.c +++ b/drivers/net/ethernet/intel/ice/ice_switch.c | |||
@@ -652,8 +652,10 @@ static void ice_fill_sw_info(struct ice_hw *hw, struct ice_fltr_info *fi) | |||
652 | /* Set lan_en to TRUE if | 652 | /* Set lan_en to TRUE if |
653 | * 1. The switch is a VEB AND | 653 | * 1. The switch is a VEB AND |
654 | * 2 | 654 | * 2 |
655 | * 2.1 The lookup is VLAN, OR | 655 | * 2.1 The lookup is a directional lookup like ethertype, |
656 | * 2.2 The lookup is default port mode, OR | 656 | * promiscuous, ethertype-mac, promiscuous-vlan |
657 | * and default-port OR | ||
658 | * 2.2 The lookup is VLAN, OR | ||
657 | * 2.3 The lookup is MAC with mcast or bcast addr for MAC, OR | 659 | * 2.3 The lookup is MAC with mcast or bcast addr for MAC, OR |
658 | * 2.4 The lookup is MAC_VLAN with mcast or bcast addr for MAC. | 660 | * 2.4 The lookup is MAC_VLAN with mcast or bcast addr for MAC. |
659 | * | 661 | * |
@@ -664,8 +666,12 @@ static void ice_fill_sw_info(struct ice_hw *hw, struct ice_fltr_info *fi) | |||
664 | * In all other cases, the LAN enable has to be set to false. | 666 | * In all other cases, the LAN enable has to be set to false. |
665 | */ | 667 | */ |
666 | if (hw->evb_veb) { | 668 | if (hw->evb_veb) { |
667 | if (fi->lkup_type == ICE_SW_LKUP_VLAN || | 669 | if (fi->lkup_type == ICE_SW_LKUP_ETHERTYPE || |
670 | fi->lkup_type == ICE_SW_LKUP_PROMISC || | ||
671 | fi->lkup_type == ICE_SW_LKUP_ETHERTYPE_MAC || | ||
672 | fi->lkup_type == ICE_SW_LKUP_PROMISC_VLAN || | ||
668 | fi->lkup_type == ICE_SW_LKUP_DFLT || | 673 | fi->lkup_type == ICE_SW_LKUP_DFLT || |
674 | fi->lkup_type == ICE_SW_LKUP_VLAN || | ||
669 | (fi->lkup_type == ICE_SW_LKUP_MAC && | 675 | (fi->lkup_type == ICE_SW_LKUP_MAC && |
670 | !is_unicast_ether_addr(fi->l_data.mac.mac_addr)) || | 676 | !is_unicast_ether_addr(fi->l_data.mac.mac_addr)) || |
671 | (fi->lkup_type == ICE_SW_LKUP_MAC_VLAN && | 677 | (fi->lkup_type == ICE_SW_LKUP_MAC_VLAN && |