linux-stable/drivers/net/ethernet/sun
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
..
cassini.c net: introduce and use skb_frag_fill_page_desc() 2023-05-13 19:47:56 +01:00
cassini.h ethernet/sun: fix repeated words in comments 2022-07-01 20:13:19 -07:00
Kconfig net: sun: SUNVNET_COMMON should depend on INET 2021-09-28 13:20:21 +01:00
ldmvsw.c ethernet: sun: add check for the mdesc_grab() 2023-03-17 07:47:39 +00:00
Makefile
niu.c niu: Fix missing unwind goto in niu_alloc_channels() 2023-04-07 08:17:54 +01:00
niu.h
sunbmac.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
sunbmac.h
sungem.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
sungem.h
sunhme.c net: sunhme: move asm includes to below linux includes 2023-04-06 19:00:41 -07:00
sunhme.h net: sunhme: Remove residual polling code 2023-03-27 08:41:56 +01:00
sunqe.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
sunqe.h
sunvnet.c ethernet: sun: add check for the mdesc_grab() 2023-03-17 07:47:39 +00:00
sunvnet_common.c sunvnet: Use kmap_local_page() instead of kmap_atomic() 2022-11-25 10:44:01 +00:00
sunvnet_common.h