aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4vf
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-12-08 14:25:14 -0500
committerDavid S. Miller <davem@davemloft.net>2016-12-08 14:25:14 -0500
commit293bfa9b48614137c1514bd091dff8e2a894dad7 (patch)
treee772f55d041956a3e07a487b48b42df8a0b830bf /drivers/net/ethernet/chelsio/cxgb4vf
parentMerge branch 'lan7801-mac-only' (diff)
parentbpf: xdp: Add XDP example for head adjustment (diff)
downloadlinux-dev-293bfa9b48614137c1514bd091dff8e2a894dad7.tar.xz
linux-dev-293bfa9b48614137c1514bd091dff8e2a894dad7.zip
Merge branch 'xdp-head-adjustment'
Martin KaFai Lau says: ==================== Allow head adjustment in XDP prog This series adds a helper to allow head adjusting in XDP prog. mlx4 driver has been modified to support this feature. An example is written to encapsulate a packet with an IPv4/v6 header and then XDP_TX it out. v4: 1. Remove XDP_QUERY_FEATURES command. Instead, check the prog->xdp_adjust_head bit inside the driver itself during XDP_SETUP_PROG in patch 1of4. Thanks for everybody's ideas. 2. Nit changes on sample code per Jesper v3: 1. Check if the driver supports head adjustment before setting the xdp_prog fd to the device in patch 1of4. 2. Remove the page alignment assumption on the data_hard_start. Instead, add data_hard_start to the struct xdp_buff and the driver has to fill it if it supports head adjustment. 3. Keep the wire MTU as before in mlx4 4. Set map0_byte_count to PAGE_SIZE in patch 3of4 v2: 1. Make a variable name change in bpf_xdp_adjust_head() in patch 1 2. Ensure no less than ETH_HLEN data in bpf_xdp_adjust_head() in patch 1 3. Some clarifications in commit log messages of patch 2 and 3 ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4vf')
0 files changed, 0 insertions, 0 deletions