cxgb4: avoid schedule while atomic

do not sleep while adding or deleting udp tunnel.

Fixes: 846eac3fcc ("cxgb4: implement udp tunnel callbacks")
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ganesh Goudar 2018-05-11 18:36:16 +05:30 committed by David S. Miller
parent c50ae55e41
commit 443e2dab32
1 changed files with 2 additions and 2 deletions

View File

@ -3081,7 +3081,7 @@ static void cxgb_del_udp_tunnel(struct net_device *netdev,
match_all_mac, match_all_mac, match_all_mac, match_all_mac,
adapter->rawf_start + adapter->rawf_start +
pi->port_id, pi->port_id,
1, pi->port_id, true); 1, pi->port_id, false);
if (ret < 0) { if (ret < 0) {
netdev_info(netdev, "Failed to free mac filter entry, for port %d\n", netdev_info(netdev, "Failed to free mac filter entry, for port %d\n",
i); i);
@ -3169,7 +3169,7 @@ static void cxgb_add_udp_tunnel(struct net_device *netdev,
match_all_mac, match_all_mac,
adapter->rawf_start + adapter->rawf_start +
pi->port_id, pi->port_id,
1, pi->port_id, true); 1, pi->port_id, false);
if (ret < 0) { if (ret < 0) {
netdev_info(netdev, "Failed to allocate a mac filter entry, not adding port %d\n", netdev_info(netdev, "Failed to allocate a mac filter entry, not adding port %d\n",
be16_to_cpu(ti->port)); be16_to_cpu(ti->port));