]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: Add comment of netvsc_xdp_xmit()
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 14 Oct 2021 01:26:26 +0000 (01:26 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Oct 2021 02:17:57 +0000 (19:17 -0700)
commite0179b0afe7ba054b60fba413d0d3ec00a030071
tree3a31b21c087c8293d5446d02fb7d9b270f3434f8
parent3c64e1f54cda08e013b557e94090f62679f64c29
hv_netvsc: Add comment of netvsc_xdp_xmit()

Adding comment to avoid the misusing of netvsc_xdp_xmit().
Otherwise the value of skb->queue_mapping could be 0 and
then the return value of skb_get_rx_queue() could be MAX_U16
cause by overflow.

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://lore.kernel.org/r/1634174786-1810351-1-git-send-email-jiasheng@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/hyperv/netvsc_drv.c