net: libwx: Fix the wrong Rx descriptor field
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 7 Apr 2025 10:33:22 +0000 (18:33 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Apr 2025 11:47:47 +0000 (13:47 +0200)
commit13e7d7240a43d8ea528c12ae5a912be1ff7fa29b
tree98977bce493cd7e07c094cd90faa34c2ef0511a7
parentb7db94734e785e380b0db0f9295e07024f4d42a0
net: libwx: Fix the wrong Rx descriptor field

WX_RXD_IPV6EX was incorrectly defined in Rx ring descriptor. In fact, this
field stores the 802.1ad ID from which the packet was received. The wrong
definition caused the statistics rx_csum_offload_errors to fail to grow
when receiving the 802.1ad packet with incorrect checksum.

Fixes: ef4f3c19f912 ("net: wangxun: libwx add rx offload functions")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Link: https://patch.msgid.link/20250407103322.273241-1-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/wangxun/libwx/wx_lib.c
drivers/net/ethernet/wangxun/libwx/wx_type.h