1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/intel/igbvf
Eric Dumazet 80bfab79b8 net: adopt skb_network_offset() and similar helpers
This is a cleanup patch, making code a bit more concise.

1) Use skb_network_offset(skb) in place of
       (skb_network_header(skb) - skb->data)

2) Use -skb_network_offset(skb) in place of
       (skb->data - skb_network_header(skb))

3) Use skb_transport_offset(skb) in place of
       (skb_transport_header(skb) - skb->data)

4) Use skb_inner_transport_offset(skb) in place of
       (skb_inner_transport_header(skb) - skb->data)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com> # for sfc
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-03-04 08:47:06 +00:00
..
defines.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
igbvf.h igbvf: Change IGBVF_MIN to allow set rx/tx value between 64 and 80 2023-09-05 10:52:08 -07:00
Makefile net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
mbx.c intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
mbx.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
netdev.c net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
regs.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
vf.c igbvf: Regard vf reset nack as success 2023-03-16 08:55:56 -07:00
vf.h igbvf: convert to strongly typed descriptors 2021-05-26 09:11:41 -07:00