summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2018-08-08 12:45:21 +0300
committerFerruh Yigit <ferruh.yigit@intel.com>2018-09-03 19:08:41 +0200
commitdaa3b0833f086c520696433e056b3c97a570370a (patch)
treec2c2bdecb6e638ca36f5ecd43874ba1c050265b0
parentabc6234e8321c2a85680ad246ae7da826fe1418b (diff)
downloaddpdk-daa3b0833f086c520696433e056b3c97a570370a.zip
dpdk-daa3b0833f086c520696433e056b3c97a570370a.tar.gz
dpdk-daa3b0833f086c520696433e056b3c97a570370a.tar.xz
net/e1000: fix Tx offload capability typos
Fix rx/tx typos in igb_get_tx_port_offloads_capa and igb_get_tx_queue_offloads_capa. Fixes: e5c05e6590ea ("net/e1000: convert to new Tx offloads API") Cc: stable@dpdk.org Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
-rw-r--r--drivers/net/e1000/igb_rxtx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c
index b955068..8aefd97 100644
--- a/drivers/net/e1000/igb_rxtx.c
+++ b/drivers/net/e1000/igb_rxtx.c
@@ -1452,10 +1452,10 @@ igb_reset_tx_queue(struct igb_tx_queue *txq, struct rte_eth_dev *dev)
uint64_t
igb_get_tx_port_offloads_capa(struct rte_eth_dev *dev)
{
- uint64_t rx_offload_capa;
+ uint64_t tx_offload_capa;
RTE_SET_USED(dev);
- rx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT |
+ tx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT |
DEV_TX_OFFLOAD_IPV4_CKSUM |
DEV_TX_OFFLOAD_UDP_CKSUM |
DEV_TX_OFFLOAD_TCP_CKSUM |
@@ -1463,17 +1463,17 @@ igb_get_tx_port_offloads_capa(struct rte_eth_dev *dev)
DEV_TX_OFFLOAD_TCP_TSO |
DEV_TX_OFFLOAD_MULTI_SEGS;
- return rx_offload_capa;
+ return tx_offload_capa;
}
uint64_t
igb_get_tx_queue_offloads_capa(struct rte_eth_dev *dev)
{
- uint64_t rx_queue_offload_capa;
+ uint64_t tx_queue_offload_capa;
- rx_queue_offload_capa = igb_get_tx_port_offloads_capa(dev);
+ tx_queue_offload_capa = igb_get_tx_port_offloads_capa(dev);
- return rx_queue_offload_capa;
+ return tx_queue_offload_capa;
}
int