svn commit: r269440 - head/sys/dev/cxgbe/common
Navdeep Parhar
np at FreeBSD.org
Sat Aug 2 18:37:23 UTC 2014
Author: np
Date: Sat Aug 2 18:37:22 2014
New Revision: 269440
URL: http://svnweb.freebsd.org/changeset/base/269440
Log:
cxgbe(4): Remove an unused version of t4_enable_vi.
MFC after: 2 weeks
Modified:
head/sys/dev/cxgbe/common/common.h
head/sys/dev/cxgbe/common/t4_hw.c
Modified: head/sys/dev/cxgbe/common/common.h
==============================================================================
--- head/sys/dev/cxgbe/common/common.h Sat Aug 2 18:37:08 2014 (r269439)
+++ head/sys/dev/cxgbe/common/common.h Sat Aug 2 18:37:22 2014 (r269440)
@@ -581,8 +581,6 @@ int t4_set_addr_hash(struct adapter *ada
bool ucast, u64 vec, bool sleep_ok);
int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid,
bool rx_en, bool tx_en);
-int t4_enable_vi_ns(struct adapter *adap, unsigned int mbox, unsigned int viid,
- bool rx_en, bool tx_en);
int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid,
unsigned int nblinks);
int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
Modified: head/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- head/sys/dev/cxgbe/common/t4_hw.c Sat Aug 2 18:37:08 2014 (r269439)
+++ head/sys/dev/cxgbe/common/t4_hw.c Sat Aug 2 18:37:22 2014 (r269440)
@@ -5206,19 +5206,6 @@ int t4_enable_vi(struct adapter *adap, u
return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
}
-int t4_enable_vi_ns(struct adapter *adap, unsigned int mbox, unsigned int viid,
- bool rx_en, bool tx_en)
-{
- struct fw_vi_enable_cmd c;
-
- memset(&c, 0, sizeof(c));
- c.op_to_viid = htonl(V_FW_CMD_OP(FW_VI_ENABLE_CMD) | F_FW_CMD_REQUEST |
- F_FW_CMD_EXEC | V_FW_VI_ENABLE_CMD_VIID(viid));
- c.ien_to_len16 = htonl(V_FW_VI_ENABLE_CMD_IEN(rx_en) |
- V_FW_VI_ENABLE_CMD_EEN(tx_en) | FW_LEN16(c));
- return t4_wr_mbox_ns(adap, mbox, &c, sizeof(c), NULL);
-}
-
/**
* t4_identify_port - identify a VI's port by blinking its LED
* @adap: the adapter
More information about the svn-src-all
mailing list