These bits are not used. Remove them to simplify the code. Fix the spacing on the IONIC_ALIGN #define.
Signed-off-by: Andrew Boyer <andrew.bo...@amd.com> --- drivers/net/ionic/ionic.h | 1 - drivers/net/ionic/ionic_dev.h | 4 +--- drivers/net/ionic/ionic_ethdev.h | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ionic/ionic.h b/drivers/net/ionic/ionic.h index 7578cd31bf..ebe23ad4e6 100644 --- a/drivers/net/ionic/ionic.h +++ b/drivers/net/ionic/ionic.h @@ -62,7 +62,6 @@ struct ionic_adapter { bool link_up; char fw_version[IONIC_DEVINFO_FWVERS_BUFLEN]; struct rte_pci_device *pci_dev; - LIST_ENTRY(ionic_adapter) pci_adapters; }; /** ionic_admin_ctx - Admin command context. diff --git a/drivers/net/ionic/ionic_dev.h b/drivers/net/ionic/ionic_dev.h index 42ba9ef5aa..600d8f4abd 100644 --- a/drivers/net/ionic/ionic_dev.h +++ b/drivers/net/ionic/ionic_dev.h @@ -21,12 +21,10 @@ #define IONIC_MIN_RING_DESC 16 #define IONIC_DEF_TXRX_DESC 4096 -#define IONIC_LIFS_MAX 1024 - #define IONIC_DEVCMD_TIMEOUT 5 /* devcmd_timeout */ #define IONIC_DEVCMD_CHECK_PERIOD_US 10 /* devcmd status chk period */ -#define IONIC_ALIGN 4096 +#define IONIC_ALIGN 4096 struct ionic_adapter; diff --git a/drivers/net/ionic/ionic_ethdev.h b/drivers/net/ionic/ionic_ethdev.h index d1ed293604..f4a4276d33 100644 --- a/drivers/net/ionic/ionic_ethdev.h +++ b/drivers/net/ionic/ionic_ethdev.h @@ -17,8 +17,6 @@ #define IONIC_ETH_DEV_TO_LIF(eth_dev) ((struct ionic_lif *) \ (eth_dev)->data->dev_private) -#define IONIC_ETH_DEV_TO_ADAPTER(eth_dev) \ - (IONIC_ETH_DEV_TO_LIF(eth_dev)->adapter) int ionic_dev_link_update(struct rte_eth_dev *eth_dev, int wait_to_complete); -- 2.17.1