Skip to content

Allow passing of VLAN CFI bit through network stack

Michał Mirosław bridge linux-arm-kernel linux-mips linuxppc-dev lkml netdev netfilter-devel sparclinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest26 of 27 patches 6 repliesIn review
  2. v124 of 27 patches 9 repliesSuperseded

26 of 27 patches are in this archive. The cover letter announces 27.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/27net/vlan: introduce __vlan_hwaccel_clear_tag() helperinclude/linux/if_vlan.h+12 -10 replies
2/27net/vlan: introduce __vlan_hwaccel_copy_tag() helperinclude/linux/if_vlan.h+13 -00 replies
3/27ibmvnic: fix accelerated VLAN handlingdrivers/net/ethernet/ibm/ibmvnic.c+3 -20 replies
4/27qlcnic: remove assumption that vlan_tci != 0drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c+5 -31 reply
5/27i40iw: remove use of VLAN_TAG_PRESENTdrivers/infiniband/hw/i40iw/i40iw_cm.c+4 -40 replies
6/27cnic: remove use of VLAN_TAG_PRESENTdrivers/net/ethernet/broadcom/cnic.c+1 -10 replies
7/27gianfar: remove use of VLAN_TAG_PRESENTdrivers/net/ethernet/freescale/gianfar_ethtool.c+3 -50 replies
8/27net/hyperv: remove use of VLAN_TAG_PRESENTdrivers/net/hyperv/hyperv_net.h drivers/net/hyperv/netvsc_drv.c drivers/net/hyperv/rndis_filter.c+9 -100 replies
9/27cxgb4: use __vlan_hwaccel helpersdrivers/infiniband/hw/cxgb4/cm.c+1 -10 replies
10/27benet: use __vlan_hwaccel helpersdrivers/net/ethernet/emulex/benet/be_main.c+2 -22 replies
11/27sky2: use __vlan_hwaccel helpersdrivers/net/ethernet/marvell/sky2.c+2 -40 replies
12/27net/core: use __vlan_hwaccel helpersnet/core/dev.c net/core/skbuff.c net/sched/act_vlan.c+7 -50 replies
13/27bridge: use __vlan_hwaccel helpersnet/bridge/br_netfilter_hooks.c net/bridge/br_private.h net/bridge/br_vlan.c+13 -100 replies
14/278021q: use __vlan_hwaccel helpersnet/8021q/vlan_core.c+1 -10 replies
15/27ipv4/tunnel: use __vlan_hwaccel helpersnet/ipv4/ip_tunnel_core.c+1 -10 replies
16/27nfnetlink/queue: use __vlan_hwaccel helpersnet/netfilter/nfnetlink_queue.c+3 -20 replies
18/27net/skbuff: add macros for VLAN_PRESENT bitinclude/linux/skbuff.h+6 -00 replies
19/27net/bpf_jit: ARM: split VLAN_PRESENT bit handling from VLAN_TCIarch/arm/net/bpf_jit_32.c+10 -70 replies
20/27net/bpf_jit: MIPS: split VLAN_PRESENT bit handling from VLAN_TCIarch/mips/net/bpf_jit.c+12 -80 replies
21/27net/bpf_jit: PPC: split VLAN_PRESENT bit handling from VLAN_TCIarch/powerpc/net/bpf_jit_comp.c+9 -80 replies
22/27net/bpf_jit: SPARC: split VLAN_PRESENT bit handling from VLAN_TCIarch/sparc/net/bpf_jit_comp.c+10 -80 replies
23/27net/bpf: split VLAN_PRESENT bit handling from VLAN_TCInet/core/filter.c+9 -110 replies
24/27bpf_test: prepare for VLAN_TAG_PRESENT removallib/test_bpf.c+15 -01 reply
25/27net: remove VLAN_TAG_PRESENTarch/mips/net/bpf_jit.c arch/powerpc/net/bpf_jit_comp.c arch/sparc/net/bpf_jit_comp.c +4 more+17 -401 reply
26/27net/hyperv: enable passing of VLAN.CFI bitdrivers/net/hyperv/netvsc_drv.c drivers/net/hyperv/rndis_filter.c+2 -00 replies
27/27net/vlan: remove unused #define HAVE_VLAN_GET_TAGinclude/linux/if_vlan.h+0 -20 replies

Reviews trailers per patch

3 of 26 patches have a Reviewed-by or Acked-by.

PatchRalf BaechleClaudiu ManoilSomnath Kotur
1/27
2/27
3/27
4/27
5/27
6/27
7/27R-b
8/27
9/27
10/27A-b
11/27
12/27
13/27
14/27
15/27
16/27
18/27
19/27
20/27A-b
21/27
22/27
23/27
24/27
25/27
26/27
27/27

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.

Read the v2 thread

Cover letter [PATCH net-next v2 00/27] Allow passing of VLAN CFI bit through network stack

Dear NetDevs

This series removes an abuse of VLAN CFI bit in Linux networking stack. Currently Linux always clears the bit on outgoing traffic and presents it cleared to userspace (even via AF_PACKET/tcpdump when hw-accelerated).

This uses a new vlan_present bit in struct skbuff, and removes an assumption that vlan_proto != 0 when VLAN tag is present.

As I can't test most of the driver changes, please look at them carefully.

The series is supposed to be bisect-friendly and that requires temporary insertion of #define VLAN_TAG_PRESENT in BPF code to be able to split JIT changes per architecture.

Best Regards,
Michał Mirosław

v2: rebase onto net-next

---

Michał Mirosław (27):
net/vlan: introduce __vlan_hwaccel_clear_tag() helper net/vlan: introduce __vlan_hwaccel_copy_tag() helper
ibmvnic: fix accelerated VLAN handling
qlcnic: remove assumption that vlan_tci != 0
i40iw: remove use of VLAN_TAG_PRESENT
cnic: remove use of VLAN_TAG_PRESENT
gianfar: remove use of VLAN_TAG_PRESENT
net/hyperv: remove use of VLAN_TAG_PRESENT
cxgb4: use __vlan_hwaccel helpers
benet: use __vlan_hwaccel helpers
sky2: use __vlan_hwaccel helpers
net/core: use __vlan_hwaccel helpers
bridge: use __vlan_hwaccel helpers
8021q: use __vlan_hwaccel helpers
ipv4/tunnel: use __vlan_hwaccel helpers nfnetlink/queue: use __vlan_hwaccel helpers
OVS: remove use of VLAN_TAG_PRESENT
net/skbuff: add macros for VLAN_PRESENT bit net/bpf_jit: ARM: split VLAN_PRESENT bit handling from VLAN_TCI net/bpf_jit: MIPS: split VLAN_PRESENT bit handling from VLAN_TCI net/bpf_jit: PPC: split VLAN_PRESENT bit handling from VLAN_TCI net/bpf_jit: SPARC: split VLAN_PRESENT bit handling from VLAN_TCI net/bpf: split VLAN_PRESENT bit handling from VLAN_TCI
bpf_test: prepare for VLAN_TAG_PRESENT removal
net: remove VLAN_TAG_PRESENT
net/hyperv: enable passing of VLAN.CFI bit
net/vlan: remove unused #define HAVE_VLAN_GET_TAG

 arch/arm/net/bpf_jit_32.c                        | 17 ++++++-----
 arch/mips/net/bpf_jit.c                          | 17 ++++++-----
 arch/powerpc/net/bpf_jit_comp.c                  | 14 ++++-----
 arch/sparc/net/bpf_jit_comp.c                    | 14 ++++-----
 drivers/infiniband/hw/cxgb4/cm.c                 |  2 +-
 drivers/infiniband/hw/i40iw/i40iw_cm.c           |  8 ++---
 drivers/net/ethernet/broadcom/cnic.c             |  2 +-
 drivers/net/ethernet/emulex/benet/be_main.c      |  4 +--
 drivers/net/ethernet/freescale/gianfar_ethtool.c |  8 ++---
 drivers/net/ethernet/ibm/ibmvnic.c               |  5 ++--
 drivers/net/ethernet/marvell/sky2.c              |  6 ++--
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c   |  8 +++--
 drivers/net/hyperv/hyperv_net.h                  |  2 +-
 drivers/net/hyperv/netvsc_drv.c                  | 14 ++++-----
 drivers/net/hyperv/rndis_filter.c                |  5 ++--
 include/linux/if_vlan.h                          | 37 +++++++++++++++++++-----
 include/linux/skbuff.h                           | 10 ++++++-
 lib/test_bpf.c                                   | 14 +++++----
 net/8021q/vlan_core.c                            |  2 +-
 net/bridge/br_netfilter_hooks.c                  | 15 ++++++----
 net/bridge/br_private.h                          |  2 +-
 net/bridge/br_vlan.c                             |  6 ++--
 net/core/dev.c                                   |  8 +++--
 net/core/filter.c                                | 17 ++++-------
 net/core/skbuff.c                                |  2 +-
 net/ipv4/ip_tunnel_core.c                        |  2 +-
 net/netfilter/nfnetlink_queue.c                  |  5 ++--
 net/openvswitch/actions.c                        | 13 ++++++---
 net/openvswitch/flow.c                           |  2 +-
 net/openvswitch/flow.h                           |  2 +-
 net/openvswitch/flow_netlink.c                   | 22 +++++++-------
 net/sched/act_vlan.c                             |  2 +-
 32 files changed, 163 insertions(+), 124 deletions(-)
Signature · 1 line
2.11.0