linux-stable/drivers/net/ethernet/chelsio/cxgb3
Yunsheng Lin b51f4113eb net: introduce and use skb_frag_fill_page_desc()
Most users use __skb_frag_set_page()/skb_frag_off_set()/
skb_frag_size_set() to fill the page desc for a skb frag.

Introduce skb_frag_fill_page_desc() to do that.

net/bpf/test_run.c does not call skb_frag_off_set() to
set the offset, "copy_from_user(page_address(page), ...)"
and 'shinfo' being part of the 'data' kzalloced in
bpf_test_init() suggest that it is assuming offset to be
initialized as zero, so call skb_frag_fill_page_desc()
with offset being zero for this case.

Also, skb_frag_set_page() is not used anymore, so remove
it.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-05-13 19:47:56 +01:00
..
Makefile
adapter.h net:cxgb3: replace tasklets with works 2021-06-03 14:57:37 -07:00
ael1002.c chelsio: simplify the return expression of t3_ael2020_phy_prep() 2020-09-21 13:49:05 -07:00
aq100x.c
common.h pci-v5.16-changes 2021-11-06 14:36:12 -07:00
cxgb3_ctl_defs.h
cxgb3_defs.h
cxgb3_ioctl.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
cxgb3_main.c net: cxgb3_main: disable napi when bind qsets failed in cxgb_up() 2022-11-09 18:32:20 -08:00
cxgb3_offload.c net: cxgb3: Fix comment typo 2022-08-12 11:28:19 +01:00
cxgb3_offload.h
firmware_exports.h
l2t.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
l2t.h
mc5.c
regs.h
sge.c net: introduce and use skb_frag_fill_page_desc() 2023-05-13 19:47:56 +01:00
sge_defs.h
t3_cpl.h chelsio: Replace zero-length array with flexible-array member 2020-02-24 15:26:17 -08:00
t3_hw.c net: chelsio: cxgb3: check the return value of pci_find_capability() 2022-02-25 12:52:05 +00:00
t3cdev.h
version.h net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
vsc8211.c
xgmac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00