]> git.baikalelectronics.ru Git - kernel.git/commit
qed*: Conditions for changing link
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Fri, 22 Apr 2016 05:41:03 +0000 (08:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2016 19:59:16 +0000 (15:59 -0400)
commita74a1c4e6879ccb4b887dfaeb453081720d9f614
tree70871cf996964bb9d544bf5adb554cc7c0968108
parentc129b0055f76e5825251e3a4596f783b97293609
qed*: Conditions for changing link

There's some inconsistency in current logic determining whether the
link settings of a given interface can be changed; I.e., in all modes
other than the so-called `deault' mode the interfaces are forbidden from
changing the configuration - but even this rule is not applied to all
user APIs that may change the configuration.

Instead, let the core-module [qed] decide whether an interface can change
the configuration by supporting a new API function. We also revise the
current rule, allowing all interfaces to change their configurations while
laying the infrastructure for future modes where an interface would be
blocked from making such a configuration.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
include/linux/qed/qed_if.h