linux-stable/drivers/net/ethernet/chelsio
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
..
cxgb net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
cxgb3 net: introduce and use skb_frag_fill_page_desc() 2023-05-13 19:47:56 +01:00
cxgb4 Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
cxgb4vf net: cxgb4vf: Remove redundant pci_clear_master 2023-03-24 09:09:27 +00:00
inline_crypto cxgb4: fill IPsec state validation failure reason 2023-01-26 16:28:48 -08:00
libcxgb libcxgb: Don't accidentally set RTO_ONLINK in cxgb_find_route() 2022-01-11 20:36:08 -08:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile chelsio/chtls: separate chelsio tls driver from crypto driver 2020-08-21 14:15:15 -07:00