[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190826214238.07a0eee9@cakuba.netronome.com>
Date: Mon, 26 Aug 2019 21:42:38 -0700
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Shannon Nelson <snelson@...sando.io>
Cc: netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH v5 net-next 04/18] ionic: Add basic lif support
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)
> +{
> + return ionic->pdev &&
> + ionic->pdev->device == PCI_DEVICE_ID_PENSANDO_IONIC_ETH_VF;
> +}
> +
> +static inline bool ionic_is_25g(struct ionic *ionic)
> +{
> + return ionic_is_pf(ionic) &&
> + ionic->pdev->subsystem_device == IONIC_SUBDEV_ID_NAPLES_25;
> +}
> +
> +static inline bool ionic_is_100g(struct ionic *ionic)
> +{
> + return ionic_is_pf(ionic) &&
> + (ionic->pdev->subsystem_device == IONIC_SUBDEV_ID_NAPLES_100_4 ||
> + ionic->pdev->subsystem_device == IONIC_SUBDEV_ID_NAPLES_100_8);
> +}
Again, a bunch of unused stuff.
Powered by blists - more mailing lists