OSDN Git Service

cxgb4: Fix {vxlan/geneve}_port initialization
authorArjun Vynipadath <arjun@chelsio.com>
Fri, 11 May 2018 13:04:43 +0000 (18:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2018 20:11:50 +0000 (16:11 -0400)
commit0e249898cac811f833bdb4701b32385c1c272da5
treeb3808fff6cc2694fe07397a2eec1caffcc7c0c96
parentf4a313b9713933af5c7928dbb6bedc8077ade572
cxgb4: Fix {vxlan/geneve}_port initialization

adapter->rawf_cnt was not initialized, thereby
ndo_udp_tunnel_{add/del} was returning immediately
without initializing {vxlan/geneve}_port.
Also initializes mps_encap_entry refcnt.

Fixes: 846eac3fccec ("cxgb4: implement udp tunnel callbacks")
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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h