Commit fe0b0cd
i40e: send correct port number to AdminQ when enabling UDP tunnels
The firmware expects the port numbers for offloaded UDP tunnels in
Little Endian format. We accidentally sent the value in Big Endian
format which obviously will cause the wrong port number to be put into
the UDP tunnels list. This results in VxLAN and Geneve tunnel Rx
offloads being essentially disabled, unless the port number happens to
be identical after byte swapping. Note that i40e_aq_add_udp_tunnel()
will byteswap the parameter from host order into Little Endian so we
don't need worry about passing strictly a __le16 value to the command.
This patch essentially reverts b3f5c7b ("i40e: Fix for extra byte
swap in tunnel setup", 2016-08-24), but in a way that makes the result
much more clear to the reader.
Fixes: b3f5c7b ("i40e: Fix for extra byte swap in tunnel setup", 2016-08-24)
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Williams, Mitch A <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>1 parent 48ce880 commit fe0b0cd
2 files changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7353 | 7353 | | |
7354 | 7354 | | |
7355 | 7355 | | |
7356 | | - | |
| 7356 | + | |
7357 | 7357 | | |
7358 | 7358 | | |
7359 | 7359 | | |
| |||
7377 | 7377 | | |
7378 | 7378 | | |
7379 | 7379 | | |
7380 | | - | |
| 7380 | + | |
7381 | 7381 | | |
7382 | 7382 | | |
7383 | 7383 | | |
| |||
9014 | 9014 | | |
9015 | 9015 | | |
9016 | 9016 | | |
9017 | | - | |
| 9017 | + | |
9018 | 9018 | | |
9019 | 9019 | | |
9020 | 9020 | | |
| |||
9037 | 9037 | | |
9038 | 9038 | | |
9039 | 9039 | | |
9040 | | - | |
| 9040 | + | |
9041 | 9041 | | |
9042 | 9042 | | |
9043 | 9043 | | |
9044 | 9044 | | |
9045 | 9045 | | |
9046 | 9046 | | |
9047 | 9047 | | |
9048 | | - | |
9049 | | - | |
| 9048 | + | |
9050 | 9049 | | |
9051 | 9050 | | |
9052 | 9051 | | |
| |||
9055 | 9054 | | |
9056 | 9055 | | |
9057 | 9056 | | |
9058 | | - | |
| 9057 | + | |
9059 | 9058 | | |
9060 | 9059 | | |
9061 | 9060 | | |
| |||
9089 | 9088 | | |
9090 | 9089 | | |
9091 | 9090 | | |
9092 | | - | |
| 9091 | + | |
9093 | 9092 | | |
9094 | 9093 | | |
9095 | 9094 | | |
| |||
9121 | 9120 | | |
9122 | 9121 | | |
9123 | 9122 | | |
9124 | | - | |
| 9123 | + | |
9125 | 9124 | | |
9126 | 9125 | | |
9127 | 9126 | | |
| |||
0 commit comments