Re: [PATCH 1/2][RESEND] ehea: propagate physical port state

Previous thread: [BUG] 2.6.23-rc5 kernel BUG at fs/nfs/nfs4xdr.c:945 by Kamalesh Babulal on Friday, September 7, 2007 - 6:02 am. (3 messages)

Next thread: [PATCH 2/2][RESEND] ehea: fix last_rx update by Jan-Bernd Themann on Friday, September 7, 2007 - 6:30 am. (1 message)
To: Jeff Garzik <jeff@...>
Cc: netdev <netdev@...>, Christoph Raisch <raisch@...>, Jan-Bernd Themann <themann@...>, linux-kernel <linux-kernel@...>, linux-ppc <linuxppc-dev@...>, Marcus Eder <meder@...>, Thomas Klein <tklein@...>, Stefan Roscher <stefan.roscher@...>
Date: Friday, September 7, 2007 - 6:30 am

Introduces a module parameter to decide whether the physical
port link state is propagated to the network stack or not.
It makes sense not to take the physical port state into account
on machines with more logical partitions that communicate
with each other. This is always possible no matter what the physical
port state is. Thus eHEA can be considered as a switch there.

Signed-off-by: Jan-Bernd Themann <themann@de.ibm.com>

---
drivers/net/ehea/ehea.h | 5 ++++-
drivers/net/ehea/ehea_main.c | 14 +++++++++++++-
2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ehea/ehea.h b/drivers/net/ehea/ehea.h
index d67f97b..8d58be5 100644
--- a/drivers/net/ehea/ehea.h
+++ b/drivers/net/ehea/ehea.h
@@ -39,7 +39,7 @@
#include <asm/io.h>

#define DRV_NAME "ehea"
-#define DRV_VERSION "EHEA_0073"
+#define DRV_VERSION "EHEA_0074"

/* eHEA capability flags */
#define DLPAR_PORT_ADD_REM 1
@@ -402,6 +402,8 @@ struct ehea_mc_list {

#define EHEA_PORT_UP 1
#define EHEA_PORT_DOWN 0
+#define EHEA_PHY_LINK_UP 1
+#define EHEA_PHY_LINK_DOWN 0
#define EHEA_MAX_PORT_RES 16
struct ehea_port {
struct ehea_adapter *adapter; /* adapter that owns this port */
@@ -427,6 +429,7 @@ struct ehea_port {
u32 msg_enable;
u32 sig_comp_iv;
u32 state;
+ u8 phy_link;
u8 full_duplex;
u8 autoneg;
u8 num_def_qps;
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index db57474..1e9fd6f 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -53,17 +53,21 @@ static int rq3_entries = EHEA_DEF_ENTRIES_RQ3;
static int sq_entries = EHEA_DEF_ENTRIES_SQ;
static int use_mcs = 0;
static int num_tx_qps = EHEA_NUM_TX_QP;
+static int prop_carrier_state = 0;

module_param(msg_level, int, 0);
module_param(rq1_entries, int, 0);
module_param(rq2_entries, int, 0);
module_param(rq3_entries, int, 0);
module_param(sq_entries, int, 0);
+module_param(prop_carrier_state, int, 0);
module_param(use...

To: Jan-Bernd Themann <ossthema@...>
Cc: netdev <netdev@...>, Christoph Raisch <raisch@...>, Jan-Bernd Themann <themann@...>, linux-kernel <linux-kernel@...>, linux-ppc <linuxppc-dev@...>, Marcus Eder <meder@...>, Thomas Klein <tklein@...>, Stefan Roscher <stefan.roscher@...>
Date: Thursday, September 13, 2007 - 12:14 am

applied 1-2

-

Previous thread: [BUG] 2.6.23-rc5 kernel BUG at fs/nfs/nfs4xdr.c:945 by Kamalesh Babulal on Friday, September 7, 2007 - 6:02 am. (3 messages)

Next thread: [PATCH 2/2][RESEND] ehea: fix last_rx update by Jan-Bernd Themann on Friday, September 7, 2007 - 6:30 am. (1 message)