Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 2014 18:37:22 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269440 - head/sys/dev/cxgbe/common
Message-ID:  <201408021837.s72IbM5F010815@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408021837.s72IbM5F010815>