igb: warn if max_vfs limit is exceeded
Subsystems (2)
PATCH 1/1 igb: warn if max_vfs limit is exceeded
From: Stefan Assmann <[email protected]>
Currently there's no warning printed when max_vfs > 7 is specified with igb and the maximum of 7 is silently enforced. This patch prints a warning and informs the user of the actions taken.
Signed-off-by Stefan Assmann <[email protected]>
--- drivers/net/igb/igb_main.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
drivers/net/igb/igb_main.c +6 -1
@@ -2290,7 +2290,12 @@ static int __devinit igb_sw_init(struct igb_adapter *adapter)switch (hw->mac.type) {case e1000_82576:case e1000_i350: - adapter->vfs_allocated_count = (max_vfs >7 ) ?7 : max_vfs; +if (max_vfs >7 ) { +dev_warn (&pdev->dev, +"Maximum of 7 VFs per PF, using max\n" ); + adapter->vfs_allocated_count =7 ; + }else + adapter->vfs_allocated_count = max_vfs;break ;default :break ;
Signature · 14 lines
1.7.3.4 ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ E1000-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
Quoted 11 lines · Stefan Assmann
From: Stefan Assmann <[email protected]>
Currently there's no warning printed when
max_vfs> 7 is specified with
igb and the maximum of 7 is silently enforced. This patch prints a warning and informs the user of the actions taken.Signed-off-by Stefan Assmann <[email protected]>--- drivers/net/igb/igb_main.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
Thanks for the patch Stefan. I have added the patch to my igb queue of patches.