Skip to contentSkip to conversation

cxgb4: avoid schedule while atomic

PATCH Applied Ganesh Goudar 2 participants 2 messages May 11, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 cxgb4: avoid schedule while atomic

do not sleep while adding or deleting udp tunnel.

Fixes 846eac3fccec ("cxgb4: implement udp tunnel callbacks")
---
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +2 -2
index aa266e2..27ad69a 100644
@@ -3081,7 +3081,7 @@ static void cxgb_del_udp_tunnel(struct net_device *netdev,
 					   match_all_mac, match_all_mac,
 					   adapter->rawf_start +
 					    pi->port_id,
-					   1, pi->port_id, true);
+					   1, pi->port_id, false);
 		if (ret < 0) {
 			netdev_info(netdev, "Failed to free mac filter entry, for port %d\n",
 				    i);
@@ -3169,7 +3169,7 @@ static void cxgb_add_udp_tunnel(struct net_device *netdev,
 					    match_all_mac,
 					    adapter->rawf_start +
 					    pi->port_id,
-					    1, pi->port_id, true);
+					    1, pi->port_id, false);
 		if (ret < 0) {
 			netdev_info(netdev, "Failed to allocate a mac filter entry, not adding port %d\n",
 				    be16_to_cpu(ti->port));
Signature · 1 line
2.1.0