ice: in VEB, prevent "cross-vlan" traffic
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest7 patches 8 repliesIn review
- v38 patches 3 repliesSuperseded
- v28 patches 9 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 8 patches | 4 replies | Superseded |
Changes in v4 from the cover letter
- Removed "ice: do not check for zero mac when creating mac filters" patch.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | ice: in dvm, use outer VLAN in MAC,VLAN lookupdrivers/ | +12 | 1 reply | |
| 2/7 | ice: allow creating mac,vlan filters along mac filtersdrivers/ | +38 | 1 reply | |
| 3/7 | ice: allow overriding lan_en, lb_en in switchdrivers/ drivers/ | +32 | 1 reply | |
| 4/7 | ice: update mac,vlan rules when toggling between VEB and VEPAdrivers/ drivers/ drivers/ | +46 | 1 reply | |
| 5/7 | ice: add functions to query for vsi's pvidsdrivers/ drivers/ | +58 | 1 reply | |
| 6/7 | ice: add mac vlan to filter APIdrivers/ drivers/ | +37 | 1 reply | |
| 7/7 | ice: in VEB, prevent "cross-vlan" traffic from hitting loopbackdrivers/ drivers/ drivers/ +3 more | +83 | 1 reply |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Aleksandr Loktionov | Michal Swiatkowski | Rafal Romanowski |
|---|---|---|---|
| Series | T-b | ||
| 1/7 | R-b | R-b | T-b |
| 2/7 | R-b | R-b | T-b |
| 3/7 | R-b | T-b | |
| 4/7 | R-b | T-b | |
| 5/7 | R-b | R-b | T-b |
| 6/7 | R-b | T-b | |
| 7/7 | R-b | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH iwl-next v4 0/7] ice: in VEB, prevent "cross-vlan" traffic
Currently, packets that match MAC address of a VF will be sent to loopback even if they would cross VLAN boundaries. Effectively, this drops them. In this patch series, we aim to address this behaviour by adding MAC,VLAN to complement what MAC-only filters do to select packets for loopback.
To reproduce the issue have an E810 ($pfa) connected to another adapter ($pfb), then:
# echo 2 >/sys/class/net/$pfa/device/sriov_numvfs
# ip l set $pfa vf 0 vlan 4
# ip l set $pfa vf 1 vlan 7
# ip l set $pfa_vf0 netns $pfa_vf0_netns up
# ip l set $pfa_vf1 netns $pfa_vf1_netns up
# ip netns exec $pfa_vf0_netns ip a add 10.0.0.1/24 dev $pfa_vf0
# ip netns exec $pfa_vf1_netns ip a add 10.0.0.2/24 dev $pfa_vf1And for the $pfb:
# echo 2 >/sys/class/net/$pfb/device/sriov_numvfs
# ip l set $pfb vf 0 trust on spoof off vlan 4
# ip l set $pfb vf 1 trust on spoof off vlan 7
# ip l add $br type bridge
# ip l set $pfb_vf0 master $br up
# ip l set $pfb_vf1 master $br up
# ip l set $br upWe expect $pfa_vf0 to be able to reach $pfa_vf1 through the $br on the link partner. Instead, ARP is unable to resolve 10.0.0.2/24. ARP request is fine because it's broadcastd and bounces off $br, but ARP reply is stuck in the internal switch because the destination MAC matches $pfa_vf0 and filter restricts it to the loopback.
In testing I used: ip utility, iproute2-6.1.0, libbpf 1.3.0
Changes in v4:
- Removed "ice: do not check for zero mac when creating mac filters" patch.
Changes in v3:
- Improve structure of reproduction description in cover letter.
- LB_LAN masks and values no longer rely on boolean promotion.
- ice_fill_sw_info() deals with u8 the entire time instead of building building lb_en and lan_en values at the end from booleans.
- Refer to reproduction in cover letter in current 4/7.
- Fixed some slip-ups "this patch" and "this commit" in commit messages across the series. I did not consider this change for reviewed-by drop.
Changes in v2:
- Use FIELD_GET et al. when handling fi.lb_en and fi.lan_en.
- Rename /LB_LAN/ s/_MASK/_M/ because one of uses would need to break line.
- Close open parenthesis in ice_vsi_update_bridge_mode() description.
- Explain returns in ice_vsi_update_bridge_mode().
v3: https://lore.kernel.org/intel-wired-lan/[email protected]/T/
v2: https://lore.kernel.org/intel-wired-lan/[email protected]/T/
v1: https://lore.kernel.org/intel-wired-lan/[email protected]/T/
Jakub Slepecki (6):
ice: in dvm, use outer VLAN in MAC,VLAN lookup
ice: allow creating mac,vlan filters along mac filters
ice: allow overriding lan_en, lb_en in switch
ice: update mac,vlan rules when toggling between VEB and VEPA
ice: add functions to query for vsi's pvids
ice: in VEB, prevent "cross-vlan" traffic from hitting loopback
Michal Swiatkowski (1):
ice: add mac vlan to filter API
drivers/net/ethernet/intel/ice/ice_fltr.c | 104 ++++++++++++++- drivers/net/ethernet/intel/ice/ice_fltr.h | 10 + drivers/net/ethernet/intel/ice/ice_lib.c | 56 ++++++++ drivers/net/ethernet/intel/ice/ice_lib.h | 2 drivers/net/ethernet/intel/ice/ice_main.c | 56 ++++++-- drivers/net/ethernet/intel/ice/ice_switch.c | 83 ++++++++--- drivers/net/ethernet/intel/ice/ice_switch.h | 24 ++- drivers/net/ethernet/intel/ice/ice_vf_lib.c | 8 - drivers/net/ethernet/intel/ice/ice_vlan_mode.c | 12 + 9 files changed, 306 insertions(+), 49 deletions(-)
Signature · 1 line
2.43.0