OSDN Git Service

igb: add function to get maximum RSS queues
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Tue, 19 Sep 2017 13:40:54 +0000 (21:40 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 24 Jan 2018 20:27:48 +0000 (12:27 -0800)
commit28cb2d1b0c8cd25cf4c899cee6e1582cfa3f330f
tree912e91b82923fb4c58b4d0c9728404e5be69bff5
parent177132df5e45b134c147f419f567a3b56aafaf2b
igb: add function to get maximum RSS queues

This patch adds a new function igb_get_max_rss_queues() to get maximum
RSS queues, this will reduce duplicate code and facilitate future
maintenance.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_ethtool.c
drivers/net/ethernet/intel/igb/igb_main.c