Author: np
Date: Mon Feb 13 18:41:32 2012
New Revision: 231592
URL: http://svn.freebsd.org/changeset/base/231592

Log:
  Use the non-sleeping variang of t4_wr_mbox in code that can be called
  with locks held.
  
  MFC after:    1 day

Modified:
  head/sys/dev/cxgbe/common/t4_hw.c

Modified: head/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- head/sys/dev/cxgbe/common/t4_hw.c   Mon Feb 13 18:26:58 2012        
(r231591)
+++ head/sys/dev/cxgbe/common/t4_hw.c   Mon Feb 13 18:41:32 2012        
(r231592)
@@ -4314,7 +4314,7 @@ int t4_change_mac(struct adapter *adap, 
                                V_FW_VI_MAC_CMD_IDX(idx));
        memcpy(p->macaddr, addr, sizeof(p->macaddr));
 
-       ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
+       ret = t4_wr_mbox_ns(adap, mbox, &c, sizeof(c), &c);
        if (ret == 0) {
                ret = G_FW_VI_MAC_CMD_IDX(ntohs(p->valid_to_idx));
                if (ret >= FW_CLS_TCAM_NUM_ENTRIES)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to