]> git.ipfire.org Git - thirdparty/linux.git/commit - drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
cxgb4: fix endian to test F_FW_PORT_CMD_DCBXDIS32
authorGanesh Goudar <ganeshgr@chelsio.com>
Wed, 1 Aug 2018 12:45:32 +0000 (18:15 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 17:08:08 +0000 (10:08 -0700)
commit90d4c5bb98bf66653333266917edf0e16ccd35f9
tree41dc176a253e51830e487b9733a36f3c431a176e
parentcef238d71de43efeb47c7d7d43da5e1b8e4a1d99
cxgb4: fix endian to test F_FW_PORT_CMD_DCBXDIS32

For FW_PORT_ACTION_GET_PORT_INFO32 messages, the
u.info32.lstatus32_to_cbllen32 is 32-bit Big Endian.
We need to translate that to CPU Endian in order to
test F_FW_PORT_CMD_DCBXDIS32.

Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c