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_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.
More "near future" support code that didn't get stripped. I'll pull it out for now.
sln
