cxgb4: fix all-mask IP address comparison
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Wed, 8 Jul 2020 21:44:27 +0000 (03:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:16:40 +0000 (08:16 +0200)
commit97d6855ac57ded0b35530037b607fa780f00b80a
tree8e726122eac077ec082449c4923d5eb03141a74c
parent2a4c5ff12f427b6046f025f138010f91002b99ea
cxgb4: fix all-mask IP address comparison

[ Upstream commit 76c4d85c9260c3d741cbd194c30c61983d0a4303 ]

Convert all-mask IP address to Big Endian, instead, for comparison.

Fixes: f286dd8eaad5 ("cxgb4: use correct type for all-mask IP address comparison")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c