Allow passing of VLAN CFI bit through network stack
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest26 of 27 patches 6 repliesIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/27 | net/vlan: introduce __vlan_hwaccel_clear_tag() helperinclude/ | +12 | 0 replies | |
| 2/27 | net/vlan: introduce __vlan_hwaccel_copy_tag() helperinclude/ | +13 | 0 replies | |
| 3/27 | ibmvnic: fix accelerated VLAN handlingdrivers/ | +3 | 0 replies | |
| 4/27 | qlcnic: remove assumption that vlan_tci != 0drivers/ | +5 | 1 reply | |
| 5/27 | i40iw: remove use of VLAN_TAG_PRESENTdrivers/ | +4 | 0 replies | |
| 6/27 | cnic: remove use of VLAN_TAG_PRESENTdrivers/ | +1 | 0 replies | |
| 7/27 | gianfar: remove use of VLAN_TAG_PRESENTdrivers/ | +3 | 0 replies | |
| 8/27 | net/hyperv: remove use of VLAN_TAG_PRESENTdrivers/ drivers/ drivers/ | +9 | 0 replies | |
| 9/27 | cxgb4: use __vlan_hwaccel helpersdrivers/ | +1 | 0 replies | |
| 10/27 | benet: use __vlan_hwaccel helpersdrivers/ | +2 | 2 replies | |
| 11/27 | sky2: use __vlan_hwaccel helpersdrivers/ | +2 | 0 replies | |
| 12/27 | net/core: use __vlan_hwaccel helpersnet/ net/ net/ | +7 | 0 replies | |
| 13/27 | bridge: use __vlan_hwaccel helpersnet/ net/ net/ | +13 | 0 replies | |
| 14/27 | 8021q: use __vlan_hwaccel helpersnet/ | +1 | 0 replies | |
| 15/27 | ipv4/tunnel: use __vlan_hwaccel helpersnet/ | +1 | 0 replies | |
| 16/27 | nfnetlink/queue: use __vlan_hwaccel helpersnet/ | +3 | 0 replies | |
| 18/27 | net/skbuff: add macros for VLAN_PRESENT bitinclude/ | +6 | 0 replies | |
| 19/27 | net/bpf_jit: ARM: split VLAN_PRESENT bit handling from VLAN_TCIarch/ | +10 | 0 replies | |
| 20/27 | net/bpf_jit: MIPS: split VLAN_PRESENT bit handling from VLAN_TCIarch/ | +12 | 0 replies | |
| 21/27 | net/bpf_jit: PPC: split VLAN_PRESENT bit handling from VLAN_TCIarch/ | +9 | 0 replies | |
| 22/27 | net/bpf_jit: SPARC: split VLAN_PRESENT bit handling from VLAN_TCIarch/ | +10 | 0 replies | |
| 23/27 | net/bpf: split VLAN_PRESENT bit handling from VLAN_TCInet/ | +9 | 0 replies | |
| 24/27 | bpf_test: prepare for VLAN_TAG_PRESENT removallib/ | +15 | 1 reply | |
| 25/27 | net: remove VLAN_TAG_PRESENTarch/ arch/ arch/ +4 more | +17 | 1 reply | |
| 26/27 | net/hyperv: enable passing of VLAN.CFI bitdrivers/ drivers/ | +2 | 0 replies | |
| 27/27 | net/vlan: remove unused #define HAVE_VLAN_GET_TAGinclude/ | +0 | 0 replies |
Reviews trailers per patch
3 of 26 patches have a Reviewed-by or Acked-by.
| Patch | Ralf Baechle | Claudiu Manoil | Somnath Kotur |
|---|---|---|---|
| 1/27 | |||
| 2/27 | |||
| 3/27 | |||
| 4/27 | |||
| 5/27 | |||
| 6/27 | |||
| 7/27 | R-b | ||
| 8/27 | |||
| 9/27 | |||
| 10/27 | A-b | ||
| 11/27 | |||
| 12/27 | |||
| 13/27 | |||
| 14/27 | |||
| 15/27 | |||
| 16/27 | |||
| 18/27 | |||
| 19/27 | |||
| 20/27 | A-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.
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