]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: don't allow reduction of channels below active FD rules
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 27 Jul 2016 19:02:35 +0000 (12:02 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:31:19 +0000 (19:31 -0500)
commit9c60eaf9ad29cf6346f31031ce2c9e9b61f31b90
treed9c6a65b04ed05b2e7e700ada598fb1ec8364b95
parent57512155af3d636635434bd0f4f4220c7f44847b
i40e: don't allow reduction of channels below active FD rules

Orabug: 24568124

If a driver is unable to maintain all current user supplied settings
from ethtool (or other sources), it is not ok for a user request to
succeed and silently trample over previous configuration.

To that end, if you change the number of channels, it must not be
allowed to reduce the number of channels (queues) below the current
flow director filter rules targets. In this case, return -EINVAL when
a request to reduce the number of channels would do so. In addition
log a warning to the kernel buffer explaining why we failed, and report
the rules which prevent us from lowering the number of channels.

Change-ID: If41464d63d7aab11cedf09e4f3aa1a69e21ffd88
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 59826d9becf76d949d09173e2c41e4049f4ca763)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c