From: Joachim Fenkes Date: Fri, 25 Jan 2008 20:12:39 +0000 (+0100) Subject: IB/ehca: Update sma_attr also in case of disruptive config change X-Git-Tag: v2.6.25-rc1~790^2~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=528b03f73247c30750b740dcad16ad1914e56e89;p=linux-2.6-omap-h63xx.git IB/ehca: Update sma_attr also in case of disruptive config change Signed-off-by: Joachim Fenkes Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/ehca/ehca_irq.c b/drivers/infiniband/hw/ehca/ehca_irq.c index 863b34fa9ff..b5ca94c6b8d 100644 --- a/drivers/infiniband/hw/ehca/ehca_irq.c +++ b/drivers/infiniband/hw/ehca/ehca_irq.c @@ -403,6 +403,8 @@ static void parse_ec(struct ehca_shca *shca, u64 eqe) sport->port_state = IB_PORT_ACTIVE; dispatch_port_event(shca, port, IB_EVENT_PORT_ACTIVE, "is active"); + ehca_query_sma_attr(shca, port, + &sport->saved_attr); } else notify_port_conf_change(shca, port); break;