Skip to content

Commit

Permalink
cxgb4: Added missing break in ndo_udp_tunnel_{add/del}
Browse files Browse the repository at this point in the history
Break statements were missing for Geneve case in
ndo_udp_tunnel_{add/del}, thereby raw mac matchall
entries were not getting added.

Fixes: c746fc0("cxgb4: add geneve offload support for T6")
Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arjun Vynipadath authored and David S. Miller committed Jul 26, 2018
1 parent c259b4f commit 942a656
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3072,6 +3072,7 @@ static void cxgb_del_udp_tunnel(struct net_device *netdev,

adapter->geneve_port = 0;
t4_write_reg(adapter, MPS_RX_GENEVE_TYPE_A, 0);
break;
default:
return;
}
Expand Down Expand Up @@ -3157,6 +3158,7 @@ static void cxgb_add_udp_tunnel(struct net_device *netdev,

t4_write_reg(adapter, MPS_RX_GENEVE_TYPE_A,
GENEVE_V(be16_to_cpu(ti->port)) | GENEVE_EN_F);
break;
default:
return;
}
Expand Down

0 comments on commit 942a656

Please sign in to comment.