mirror_ubuntu-kernels/drivers/net/ethernet/mellanox
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
..
mlx4 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-04-13 16:04:28 -07:00
mlx5/core net: introduce and use skb_frag_fill_page_desc() 2023-05-13 19:47:56 +01:00
mlxbf_gige net: Remove C45 check in C22 only MDIO bus drivers 2023-01-20 18:12:45 -08:00
mlxfw mlxfw: fix null-ptr-deref in mlxfw_mfa2_tlv_next() 2023-04-18 13:26:44 +02:00
mlxsw Networking changes for 6.4. 2023-04-26 16:07:23 -07:00
Kconfig
Makefile