summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Wang <xiao.w.wang@intel.com>2019-05-05 13:45:28 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2019-05-07 12:00:31 +0200
commit8df10eb60ff703649510c66df7907ac1be5c21b9 (patch)
treeeb67158d12218e0b3282c878c80338783f9a5956
parent46155cb49a61423ab67095c786f83a6d57a1891b (diff)
downloaddpdk-draft-windows-8df10eb60ff703649510c66df7907ac1be5c21b9.zip
dpdk-draft-windows-8df10eb60ff703649510c66df7907ac1be5c21b9.tar.gz
dpdk-draft-windows-8df10eb60ff703649510c66df7907ac1be5c21b9.tar.xz
net/ice: clean up minor issues
This patch is a cleanup on comment, variable modifier, coding style. Signed-off-by: Xiao Wang <xiao.w.wang@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
-rw-r--r--drivers/net/ice/ice_ethdev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index cae7a9d..7d23f5d 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -1591,7 +1591,7 @@ ice_dev_uninit(struct rte_eth_dev *dev)
/* disable uio intr before callback unregister */
rte_intr_disable(intr_handle);
- /* register callback func to eal lib */
+ /* unregister callback func from eal lib */
rte_intr_callback_unregister(intr_handle,
ice_interrupt_handler, dev);
@@ -2129,7 +2129,7 @@ ice_atomic_write_link_status(struct rte_eth_dev *dev,
}
static int
-ice_link_update(struct rte_eth_dev *dev, __rte_unused int wait_to_complete)
+ice_link_update(struct rte_eth_dev *dev, int wait_to_complete)
{
#define CHECK_INTERVAL 100 /* 100ms */
#define MAX_REPEAT_TIME 10 /* 1s (10 * 100ms) in total */
@@ -2506,7 +2506,7 @@ ice_vlan_tpid_set(struct rte_eth_dev *dev,
reg_id = 3;
else
reg_id = 5;
- break;
+ break;
case ETH_VLAN_TYPE_INNER:
if (qinq) {
reg_id = 5;