cxgb4: mk_act_open_req() buggers ->{local, peer}_ip on big-endian hosts
authorAl Viro <viro@ZenIV.linux.org.uk>
Sun, 5 Aug 2018 17:22:38 +0000 (18:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 19:33:58 +0000 (12:33 -0700)
commitadfb442dbbd31bd2138d02b5822914178170df33
tree0d603b7551cc7a16af791670bf64ffd3327683cb
parent4576cd469d980317c4edd9173f8b694aa71ea3a3
cxgb4: mk_act_open_req() buggers ->{local, peer}_ip on big-endian hosts

Unlike fs.val.lport and fs.val.fport, cxgb4_process_flow_match()
sets fs.val.{l,f}ip to net-endian values without conversion - they come
straight from flow_dissector_key_ipv4_addrs ->dst and ->src resp.  So
the assignment in mk_act_open_req() ought to be a straight copy.

As far as I know, T4 PCIe cards do exist, so it's not as if that
thing could only be found on little-endian systems...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c