diff options
| author | Jesper Dangaard Brouer <brouer@redhat.com> | 2021-11-15 21:36:25 +0100 |
|---|---|---|
| committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-11-30 08:19:25 -0800 |
| commit | 4fa8fcd3440101dbacf4fae91de69877ef751977 (patch) | |
| tree | 01a2c966cf6da7ca0b6da6d16d6b682b2aeefc41 /include/linux/debugobjects.h | |
| parent | 196073f9c44be0b4758ead11e51bc2875f98df29 (diff) | |
| download | cachepc-linux-4fa8fcd3440101dbacf4fae91de69877ef751977.tar.gz cachepc-linux-4fa8fcd3440101dbacf4fae91de69877ef751977.zip | |
igc: AF_XDP zero-copy metadata adjust breaks SKBs on XDP_PASS
Driver already implicitly supports XDP metadata access in AF_XDP
zero-copy mode, as xsk_buff_pool's xp_alloc() naturally set xdp_buff
data_meta equal data.
This works fine for XDP and AF_XDP, but if a BPF-prog adjust via
bpf_xdp_adjust_meta() and choose to call XDP_PASS, then igc function
igc_construct_skb_zc() will construct an invalid SKB packet. The
function correctly include the xdp->data_meta area in the memcpy, but
forgot to pull header to take metasize into account.
Fixes: fc9df2a0b520 ("igc: Enable RX via AF_XDP zero-copy")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Tested-by: Nechama Kraus <nechamax.kraus@linux.intel.com>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
