aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLendacky, Thomas <Thomas.Lendacky@amd.com>2014-11-04 17:06:32 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-05 21:50:12 -0500
commita9d41981e95651143125352f0233138efc17378a (patch)
treea0e9acdcfc564cc67ac6c4cbb18341f8293e0366
parent4780b7cae60cf10af4ae75bc5d6643f41d4c2969 (diff)
amd-xgbe: Rename pre_xmit function to dev_xmit
The pre_xmit function name implies that it performs operations prior to transmitting the packet when in fact it is responsible for setting up the descriptors and initiating the transmit. Rename this to function from pre_xmit to dev_xmit, which is consistent with the name used during receive processing - dev_read. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/amd/xgbe/xgbe-dev.c8
-rw-r--r--drivers/net/ethernet/amd/xgbe/xgbe-drv.c2
-rw-r--r--drivers/net/ethernet/amd/xgbe/xgbe.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-dev.c b/drivers/net/ethernet/amd/xgbe/xgbe-dev.c
index 9da3a03e8c07..7b97d3852091 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-dev.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-dev.c
@@ -1198,7 +1198,7 @@ static void xgbe_config_dcb_pfc(struct xgbe_prv_data *pdata)
1198 xgbe_config_flow_control(pdata); 1198 xgbe_config_flow_control(pdata);
1199} 1199}
1200 1200
1201static void xgbe_pre_xmit(struct xgbe_channel *channel) 1201static void xgbe_dev_xmit(struct xgbe_channel *channel)
1202{ 1202{
1203 struct xgbe_prv_data *pdata = channel->pdata; 1203 struct xgbe_prv_data *pdata = channel->pdata;
1204 struct xgbe_ring *ring = channel->tx_ring; 1204 struct xgbe_ring *ring = channel->tx_ring;
@@ -1211,7 +1211,7 @@ static void xgbe_pre_xmit(struct xgbe_channel *channel)
1211 int start_index = ring->cur; 1211 int start_index = ring->cur;
1212 int i; 1212 int i;
1213 1213
1214 DBGPR("-->xgbe_pre_xmit\n"); 1214 DBGPR("-->xgbe_dev_xmit\n");
1215 1215
1216 csum = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, 1216 csum = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES,
1217 CSUM_ENABLE); 1217 CSUM_ENABLE);
@@ -1410,7 +1410,7 @@ static void xgbe_pre_xmit(struct xgbe_channel *channel)
1410 channel->name, start_index & (ring->rdesc_count - 1), 1410 channel->name, start_index & (ring->rdesc_count - 1),
1411 (ring->cur - 1) & (ring->rdesc_count - 1)); 1411 (ring->cur - 1) & (ring->rdesc_count - 1));
1412 1412
1413 DBGPR("<--xgbe_pre_xmit\n"); 1413 DBGPR("<--xgbe_dev_xmit\n");
1414} 1414}
1415 1415
1416static int xgbe_dev_read(struct xgbe_channel *channel) 1416static int xgbe_dev_read(struct xgbe_channel *channel)
@@ -2561,7 +2561,7 @@ void xgbe_init_function_ptrs_dev(struct xgbe_hw_if *hw_if)
2561 hw_if->powerup_rx = xgbe_powerup_rx; 2561 hw_if->powerup_rx = xgbe_powerup_rx;
2562 hw_if->powerdown_rx = xgbe_powerdown_rx; 2562 hw_if->powerdown_rx = xgbe_powerdown_rx;
2563 2563
2564 hw_if->pre_xmit = xgbe_pre_xmit; 2564 hw_if->dev_xmit = xgbe_dev_xmit;
2565 hw_if->dev_read = xgbe_dev_read; 2565 hw_if->dev_read = xgbe_dev_read;
2566 hw_if->enable_int = xgbe_enable_int; 2566 hw_if->enable_int = xgbe_enable_int;
2567 hw_if->disable_int = xgbe_disable_int; 2567 hw_if->disable_int = xgbe_disable_int;
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
index 07b00bdcd9f9..8cb2372f8fa9 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
@@ -1343,7 +1343,7 @@ static int xgbe_xmit(struct sk_buff *skb, struct net_device *netdev)
1343 xgbe_prep_tx_tstamp(pdata, skb, packet); 1343 xgbe_prep_tx_tstamp(pdata, skb, packet);
1344 1344
1345 /* Configure required descriptor fields for transmission */ 1345 /* Configure required descriptor fields for transmission */
1346 hw_if->pre_xmit(channel); 1346 hw_if->dev_xmit(channel);
1347 1347
1348#ifdef XGMAC_ENABLE_TX_PKT_DUMP 1348#ifdef XGMAC_ENABLE_TX_PKT_DUMP
1349 xgbe_print_pkt(netdev, skb, true); 1349 xgbe_print_pkt(netdev, skb, true);
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe.h b/drivers/net/ethernet/amd/xgbe/xgbe.h
index 789957d43a13..0dc15d7c6ae1 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe.h
+++ b/drivers/net/ethernet/amd/xgbe/xgbe.h
@@ -456,7 +456,7 @@ struct xgbe_hw_if {
456 456
457 int (*enable_int)(struct xgbe_channel *, enum xgbe_int); 457 int (*enable_int)(struct xgbe_channel *, enum xgbe_int);
458 int (*disable_int)(struct xgbe_channel *, enum xgbe_int); 458 int (*disable_int)(struct xgbe_channel *, enum xgbe_int);
459 void (*pre_xmit)(struct xgbe_channel *); 459 void (*dev_xmit)(struct xgbe_channel *);
460 int (*dev_read)(struct xgbe_channel *); 460 int (*dev_read)(struct xgbe_channel *);
461 void (*tx_desc_init)(struct xgbe_channel *); 461 void (*tx_desc_init)(struct xgbe_channel *);
462 void (*rx_desc_init)(struct xgbe_channel *); 462 void (*rx_desc_init)(struct xgbe_channel *);