Re: [PATCH v5 net-next 04/18] ionic: Add basic lif support

2019-08-27 Thread Shannon Nelson
On 8/26/19 9:42 PM, Jakub Kicinski wrote: On Mon, 26 Aug 2019 14:33:25 -0700, Shannon Nelson wrote: +static inline bool ionic_is_pf(struct ionic *ionic) +{ + return ionic->pdev && + ionic->pdev->device == PCI_DEVICE_ID_PENSANDO_IONIC_ETH_PF; +} + +static inline bool ionic_is_v

Re: [PATCH v5 net-next 04/18] ionic: Add basic lif support

2019-08-26 Thread Jakub Kicinski
On Mon, 26 Aug 2019 14:33:25 -0700, Shannon Nelson wrote: > +static inline bool ionic_is_pf(struct ionic *ionic) > +{ > + return ionic->pdev && > +ionic->pdev->device == PCI_DEVICE_ID_PENSANDO_IONIC_ETH_PF; > +} > + > +static inline bool ionic_is_vf(struct ionic *ionic) > +{ > +

[PATCH v5 net-next 04/18] ionic: Add basic lif support

2019-08-26 Thread Shannon Nelson
The LIF is the Logical Interface, which represents the external connections. The NIC can multiplex many LIFs to a single port, but in most setups, LIF0 is the primary control for the port. Signed-off-by: Shannon Nelson --- drivers/net/ethernet/pensando/ionic/Makefile | 2 +- drivers/net/ethe