net/netvsc: fix crash during Tx
authorChas Williams <3chas3@gmail.com>
Wed, 29 Jul 2020 13:58:44 +0000 (09:58 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 30 Jul 2020 17:29:37 +0000 (19:29 +0200)
commitaee76bb79b91e2f8bce0e9356bee23f6e52d0513
treed8cf41a30a9902f60e042eb652b2fb703693d9d8
parentd74fab8e7cc36acaf2abf83888809fd1e40c932a
net/netvsc: fix crash during Tx

Commit cc0251813277 ("net/netvsc: split send buffers from Tx
descriptors") changed the way that transmit descriptors are
allocated. They come from a single pool instead of being
individually attached to each mbuf. To find the IOVA, you need
to calculate the offset from the base of the pool.

Fixes: cc0251813277 ("net/netvsc: split send buffers from Tx descriptors")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <3chas3@gmail.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/netvsc/hn_rxtx.c