]> 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)
commit30d6bd7bf71922fa4228c1efff7d72dc5fcc517a
treefe67526f635205d0889a89ed04d7e74871ec9a48
parent7831154cd9683d85d2f9c92606a5ad8177a1c5c3
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