mirror_ubuntu-kernels/drivers/net
Jesper Dangaard Brouer d677266755 igc: Add XDP hints kfuncs for RX timestamp
The NIC hardware RX timestamping mechanism adds an optional tailored
header before the MAC header containing packet reception time. Optional
depending on RX descriptor TSIP status bit (IGC_RXDADV_STAT_TSIP). In
case this bit is set driver does offset adjustments to packet data start
and extracts the timestamp.

The timestamp need to be extracted before invoking the XDP bpf_prog,
because this area just before the packet is also accessible by XDP via
data_meta context pointer (and helper bpf_xdp_adjust_meta). Thus, an XDP
bpf_prog can potentially overwrite this and corrupt data that we want to
extract with the new kfunc for reading the timestamp.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Yoong Siang <yoong.siang.song@intel.com>
Link: https://lore.kernel.org/bpf/168182465791.616355.2583922957423587914.stgit@firesoul
2023-04-27 18:42:19 +02:00
..
appletalk
arcnet
bonding Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-04-20 16:29:51 -07:00
caif
can kvaser_usb: convert USB IDs to hexadecimal values 2023-04-04 16:48:45 +02:00
dsa net: dsa: qca8k: fix LEDS_CLASS dependency 2023-04-21 20:26:41 -07:00
ethernet igc: Add XDP hints kfuncs for RX timestamp 2023-04-27 18:42:19 +02:00
fddi net: fddi: skfp: rmt: Clean up some inconsistent indenting 2023-04-11 12:46:26 +02:00
fjes
hamradio hamradio: drop ISA_DMA_API dependency 2023-04-19 13:11:41 +01:00
hippi
hyperv
ieee802154 Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
ipa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-30 14:43:03 -07:00
ipvlan
mctp
mdio net: ethernet: Add missing depends on MDIO_DEVRES 2023-04-12 20:38:48 -07:00
netdevsim
pcs net: pcs: xpcs: use Autoneg bit rather than an_enabled 2023-03-22 22:43:05 -07:00
phy net: phy: hide the PHYLIB_LEDS knob 2023-04-26 11:54:50 +02:00
plip
ppp
pse-pd
slip
team
thunderbolt net: thunderbolt: Fix typos in comments 2023-04-12 21:09:12 -07:00
usb r8152: Add __GFP_NOWARN to big allocations 2023-04-07 20:12:46 -07:00
vmxnet3 net: vmxnet3: Fix NULL pointer dereference in vmxnet3_rq_rx_complete() 2023-04-19 09:03:05 +01:00
vxlan
wan
wireguard
wireless Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
wwan wwan: core: add print for wwan port attach/disconnect 2023-04-20 19:57:43 -07:00
xen-netback xen/netback: use same error messages for same errors 2023-03-30 15:39:23 +02:00
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig net: veth: add page_pool stats 2023-04-24 18:07:08 -07:00
LICENSE.SRC
loopback.c
macsec.c macsec: Don't rely solely on the dst MAC address to identify destination MACsec device 2023-04-21 08:22:15 +01:00
macvlan.c macvlan: Fix mc_filter calculation 2023-03-31 08:56:42 +01:00
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c net/net_failover: fix txq exceeding warning 2023-03-27 08:08:57 +01:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tun.c Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
veth.c net: veth: add page_pool stats 2023-04-24 18:07:08 -07:00
virtio_net.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-04-20 16:29:51 -07:00
vrf.c
vsockmon.c
xen-netfront.c