]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: Use skb_put_data() instead of skb_put/memcpy pair
authorShang XiaoJing <shangxiaojing@huawei.com>
Tue, 27 Sep 2022 14:18:35 +0000 (22:18 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 Sep 2022 08:46:42 +0000 (10:46 +0200)
commit26c69bcb09a271b3effc1a6aa959fa34f7091e3d
treefe67526f635205d0889a89ed04d7e74871ec9a48
parent2e394dea0570d0364bdc5c73d359bbde5801faf2
nfp: Use skb_put_data() instead of skb_put/memcpy pair

Use skb_put_data() instead of skb_put() and memcpy(), which is clear.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Link: https://lore.kernel.org/r/20220927141835.19221-1-shangxiaojing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/netronome/nfp/nfd3/xsk.c