|
@@ -7349,7 +7349,7 @@ static void i40e_sync_udp_filters_subtask(struct i40e_pf *pf)
|
|
for (i = 0; i < I40E_MAX_PF_UDP_OFFLOAD_PORTS; i++) {
|
|
for (i = 0; i < I40E_MAX_PF_UDP_OFFLOAD_PORTS; i++) {
|
|
if (pf->pending_udp_bitmap & BIT_ULL(i)) {
|
|
if (pf->pending_udp_bitmap & BIT_ULL(i)) {
|
|
pf->pending_udp_bitmap &= ~BIT_ULL(i);
|
|
pf->pending_udp_bitmap &= ~BIT_ULL(i);
|
|
- port = pf->udp_ports[i].index;
|
|
|
|
|
|
+ port = pf->udp_ports[i].port;
|
|
if (port)
|
|
if (port)
|
|
ret = i40e_aq_add_udp_tunnel(hw, port,
|
|
ret = i40e_aq_add_udp_tunnel(hw, port,
|
|
pf->udp_ports[i].type,
|
|
pf->udp_ports[i].type,
|
|
@@ -7366,7 +7366,7 @@ static void i40e_sync_udp_filters_subtask(struct i40e_pf *pf)
|
|
i40e_stat_str(&pf->hw, ret),
|
|
i40e_stat_str(&pf->hw, ret),
|
|
i40e_aq_str(&pf->hw,
|
|
i40e_aq_str(&pf->hw,
|
|
pf->hw.aq.asq_last_status));
|
|
pf->hw.aq.asq_last_status));
|
|
- pf->udp_ports[i].index = 0;
|
|
|
|
|
|
+ pf->udp_ports[i].port = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -8953,7 +8953,7 @@ static u8 i40e_get_udp_port_idx(struct i40e_pf *pf, u16 port)
|
|
u8 i;
|
|
u8 i;
|
|
|
|
|
|
for (i = 0; i < I40E_MAX_PF_UDP_OFFLOAD_PORTS; i++) {
|
|
for (i = 0; i < I40E_MAX_PF_UDP_OFFLOAD_PORTS; i++) {
|
|
- if (pf->udp_ports[i].index == port)
|
|
|
|
|
|
+ if (pf->udp_ports[i].port == port)
|
|
return i;
|
|
return i;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -9006,7 +9006,7 @@ static void i40e_udp_tunnel_add(struct net_device *netdev,
|
|
}
|
|
}
|
|
|
|
|
|
/* New port: add it and mark its index in the bitmap */
|
|
/* New port: add it and mark its index in the bitmap */
|
|
- pf->udp_ports[next_idx].index = port;
|
|
|
|
|
|
+ pf->udp_ports[next_idx].port = port;
|
|
pf->pending_udp_bitmap |= BIT_ULL(next_idx);
|
|
pf->pending_udp_bitmap |= BIT_ULL(next_idx);
|
|
pf->flags |= I40E_FLAG_UDP_FILTER_SYNC;
|
|
pf->flags |= I40E_FLAG_UDP_FILTER_SYNC;
|
|
}
|
|
}
|
|
@@ -9047,7 +9047,7 @@ static void i40e_udp_tunnel_del(struct net_device *netdev,
|
|
/* if port exists, set it to 0 (mark for deletion)
|
|
/* if port exists, set it to 0 (mark for deletion)
|
|
* and make it pending
|
|
* and make it pending
|
|
*/
|
|
*/
|
|
- pf->udp_ports[idx].index = 0;
|
|
|
|
|
|
+ pf->udp_ports[idx].port = 0;
|
|
pf->pending_udp_bitmap |= BIT_ULL(idx);
|
|
pf->pending_udp_bitmap |= BIT_ULL(idx);
|
|
pf->flags |= I40E_FLAG_UDP_FILTER_SYNC;
|
|
pf->flags |= I40E_FLAG_UDP_FILTER_SYNC;
|
|
|
|
|