1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/hisilicon/hns
Eric Dumazet 504148fedb net: add skb_[inner_]tcp_all_headers helpers
Most drivers use "skb_transport_offset(skb) + tcp_hdrlen(skb)"
to compute headers length for a TCP packet, but others
use more convoluted (but equivalent) ways.

Add skb_tcp_all_headers() and skb_inner_tcp_all_headers()
helpers to harmonize this a bit.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-07-02 16:22:25 +01:00
..
hnae.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
hnae.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_ae_adapt.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_gmac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_gmac.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
hns_dsaf_mac.c net: hns: Add missing fwnode_handle_put in hns_mac_init 2022-04-25 11:06:53 +01:00
hns_dsaf_mac.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_main.c net: hisilicon: hns: Fix wrong function name in comments 2021-05-17 14:12:39 -07:00
hns_dsaf_main.h net: hns: Prefer struct_size over open coded arithmetic 2021-10-12 11:23:11 +01:00
hns_dsaf_misc.c ethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port() 2021-11-18 11:15:47 +00:00
hns_dsaf_misc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
hns_dsaf_ppe.c net: hisilicon: hns: Fix wrong function name in comments 2021-05-17 14:12:39 -07:00
hns_dsaf_ppe.h net: hns: Replace zero-length array with flexible-array member 2020-02-26 16:43:09 -08:00
hns_dsaf_rcb.c net: hisilicon: hns: Fix wrong function name in comments 2021-05-17 14:12:39 -07:00
hns_dsaf_rcb.h net: hns: Replace zero-length array with flexible-array member 2020-02-26 16:43:09 -08:00
hns_dsaf_reg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
hns_dsaf_xgmac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_xgmac.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
hns_enet.c net: add skb_[inner_]tcp_all_headers helpers 2022-07-02 16:22:25 +01:00
hns_enet.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
hns_ethtool.c net: add per-cpu storage and net->core_stats 2022-03-11 23:17:24 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00