]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed*: Conditions for changing link
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Fri, 22 Apr 2016 05:41:03 +0000 (08:41 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 19:29:30 +0000 (12:29 -0700)
commit27e86f578db21fc891282e98a80ce1060bd6ffaa
tree8b361f21bcebd53b17109cc83ef9691141bc56fa
parent40fccea90fd2a807b42644187432de035097e868
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>
Orabug: 23732603
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_main.c
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
include/linux/qed/qed_if.h