]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f9c0375d9280ddf00eb8168d414c21a8c23e629
treeb3808fff6cc2694fe07397a2eec1caffcc7c0c96
parentfd5f6413f947e013ff6659b9824bcc7f972cb3f6
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: 89b8c94b551d ("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