net/cxgbe: rework and simplify link handling
authorKarra Satwik <kaara.satwik@chelsio.com>
Sun, 20 Dec 2020 22:47:41 +0000 (04:17 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:14 +0000 (03:30 +0100)
commita83041b1e998cda085b90e9bb744dd2e72874160
tree7911bd794bed4e3a200a7371eac2b72b927ff8db
parent439009e4ef3469ff1cd68d4ec71ca922f3a6d68f
net/cxgbe: rework and simplify link handling

Rework and simplify link handling code. Remove redundant
variables in link configuration structure and directly
extract information from the 32-bit link capabilities.

Signed-off-by: Karra Satwik <kaara.satwik@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/base/adapter.h
drivers/net/cxgbe/base/common.h
drivers/net/cxgbe/base/t4_hw.c
drivers/net/cxgbe/base/t4fw_interface.h
drivers/net/cxgbe/base/t4vf_hw.c
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/cxgbe/cxgbe_main.c