net/i40e/base: comment that UDP port must be in host order
authorJingjing Wu <jingjing.wu@intel.com>
Sat, 10 Dec 2016 11:24:46 +0000 (19:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:39:27 +0000 (19:39 +0100)
commit37392dc7dcab327d66a6a31b5e4d56aaf59e6761
tree522858ee84fa4768e6daf9909d5250b6d7f3953e
parent5f3b47c1162eef3e60f46fa074fffe8a5c123025
net/i40e/base: comment that UDP port must be in host order

The firmware expects the Port number to be in Little Endian format, and
the i40e_aq_add_udp_tunnel command clearly expects the udp_port variable
to be in Host order, as it uses CPU_TO_LE16(). It was recently
discovered in the Linux driver that we were passing a Big Endian port
number, which was therefor not enabling the UDP tunnel correctly.

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/base/i40e_common.c