]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: fix endian-ness for RSS
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 12:51:58 +0000 (08:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Aug 2022 10:26:19 +0000 (11:26 +0100)
commit1e42cd11c1fc9e9e80795554fadd14162d9e4596
tree044dfa8c006ba118a5cf5ceaeb90078733891091
parent35d9c59d826ae1ff7a4fee62e8c2fb683b5ef849
virtio_net: fix endian-ness for RSS

Using native endian-ness for device supplied fields is wrong
on BE platforms. Sparse warns about this.

Fixes: 70cbb5174443 ("drivers/net/virtio_net: Added RSS hash report.")
Cc: "Andrew Melnychenko" <andrew@daynix.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c