Commit 1eb4ef1
bnxt_en: Implement .set_port / .unset_port UDP tunnel callbacks
As per the new udp tunnel framework, drivers which need to know the
details of a port entry (i.e. port type) when it gets deleted should
use the .set_port / .unset_port callbacks.
Implementing the current .udp_tunnel_sync callback would mean that the
deleted tunnel port entry would be all zeros. This used to work on
older firmware because it would not check the input when deleting a
tunnel port. With newer firmware, the delete will now fail and
subsequent tunnel port allocation will fail as a result.
Fixes: 442a35a ("bnxt: convert to new udp_tunnel_nic infra")
Reviewed-by: Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 319a782 commit 1eb4ef1
1 file changed
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13036 | 13036 | | |
13037 | 13037 | | |
13038 | 13038 | | |
13039 | | - | |
| 13039 | + | |
| 13040 | + | |
13040 | 13041 | | |
13041 | 13042 | | |
13042 | | - | |
13043 | 13043 | | |
13044 | 13044 | | |
13045 | | - | |
13046 | | - | |
| 13045 | + | |
13047 | 13046 | | |
13048 | 13047 | | |
13049 | 13048 | | |
13050 | 13049 | | |
13051 | | - | |
13052 | | - | |
| 13050 | + | |
| 13051 | + | |
| 13052 | + | |
| 13053 | + | |
| 13054 | + | |
| 13055 | + | |
| 13056 | + | |
| 13057 | + | |
| 13058 | + | |
| 13059 | + | |
| 13060 | + | |
| 13061 | + | |
| 13062 | + | |
13053 | 13063 | | |
13054 | 13064 | | |
13055 | 13065 | | |
13056 | 13066 | | |
13057 | 13067 | | |
13058 | | - | |
| 13068 | + | |
| 13069 | + | |
13059 | 13070 | | |
13060 | 13071 | | |
13061 | 13072 | | |
| |||
0 commit comments