liquidio: Tx queue cleanup
Subsystems (3)
cover liquidio: Tx queue cleanup
From: Intiyaz Basha <[email protected]>
Moved some common function to octeon_network.h
Removed some unwanted functions and checks.
Intiyaz Basha (13):
liquidio: Moved common function txqs_stop to octeon_network.h
liquidio: Moved common function txqs_wake to octeon_network.h
liquidio: Moved common function txqs_start to octeon_network.h
liquidio: Moved common function skb_iq to to octeon_network.h
liquidio: Removed one line function stop_txq
liquidio: Removed start_txq function
liquidio: Removed netif_is_multiqueue check
liquidio: Removed one line function stop_q
liquidio: Removed one line function wake_q
liquidio: Function call skb_iq for deriving queue from skb
liquidio: Renamed txqs_wake to wake_txqs
liquidio: Renamed txqs_stop to stop_txqs
liquidio: Renamed txqs_start to start_txqs
drivers/net/ethernet/cavium/liquidio/lio_core.c | 18 +- drivers/net/ethernet/cavium/liquidio/lio_main.c | 213 ++++----------------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 167 ++-------------- .../net/ethernet/cavium/liquidio/octeon_network.h | 52 +++++ 4 files changed, 109 insertions(+), 341 deletions(-)
Signature · 1 line
1.8.3.1
PATCH 1/13 liquidio: Moved common function txqs_stop to octeon_network.h
From: Intiyaz Basha <[email protected]>
Moving common function txqs_stop to octeon_network.h
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 16 ---------------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 16 ---------------- drivers/net/ethernet/cavium/liquidio/octeon_network.h | 16 ++++++++++++++++ 3 files changed, 16 insertions(+), 32 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +0 -16
@@ -509,22 +509,6 @@ static void liquidio_deinit_pci(void) }/** -* \brief Stop Tx queues -* @param netdev network device -*/ -static inline void txqs_stop (struct net_device *netdev) -{ -if (netif_is_multiqueue (netdev)) { -int i; - -for (i =0 ; i < netdev->num_tx_queues; i++) -netif_stop_subqueue (netdev, i); - }else { -netif_stop_queue (netdev); - } -} - -/** * \brief Start Tx queues * @param netdev network device */
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +0 -16
@@ -285,22 +285,6 @@ static pci_ers_result_t liquidio_pcie_error_detected(struct pci_dev *pdev, };/** -* \brief Stop Tx queues -* @param netdev network device -*/ -static void txqs_stop (struct net_device *netdev) -{ -if (netif_is_multiqueue (netdev)) { -int i; - -for (i =0 ; i < netdev->num_tx_queues; i++) -netif_stop_subqueue (netdev, i); - }else { -netif_stop_queue (netdev); - } -} - -/** * \brief Start Tx queues * @param netdev network device */
drivers/net/ethernet/cavium/liquidio/octeon_network.h +16 -0
@@ -506,4 +506,20 @@ static inline int wait_for_pending_requests(struct octeon_device *oct) return 0; } +/** +* \brief Stop Tx queues +* @param netdev network device +*/ +static inline void txqs_stop (struct net_device *netdev) +{ +if (netif_is_multiqueue (netdev)) { +int i; + +for (i =0 ; i < netdev->num_tx_queues; i++) +netif_stop_subqueue (netdev, i); + }else { +netif_stop_queue (netdev); + } +} +#endif
Signature · 1 line
1.8.3.1
PATCH 2/13 liquidio: Moved common function txqs_wake to octeon_network.h
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Moving common function txqs_wake to octeon_network.h
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 28 ---------------------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 27 --------------------- .../net/ethernet/cavium/liquidio/octeon_network.h | 27 +++++++++++++++++++++ 3 files changed, 27 insertions(+), 55 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +0 -28
@@ -525,34 +525,6 @@ static inline void txqs_start(struct net_device *netdev) }/** -* \brief Wake Tx queues -* @param netdev network device -*/ -static inline void txqs_wake (struct net_device *netdev) -{ -struct lio *lio =GET_LIO (netdev); - -if (netif_is_multiqueue (netdev)) { -int i; - -for (i =0 ; i < netdev->num_tx_queues; i++) { -int qno = lio->linfo.txpciq[i % - lio->oct_dev->num_iqs].s.q_no; - -if (__netif_subqueue_stopped (netdev, i)) { -INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, qno, - tx_restart,1 ); -netif_wake_subqueue (netdev, i); - } - } - }else { -INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, lio->txq, - tx_restart,1 ); -netif_wake_queue (netdev); - } -} - -/** * \brief Stop Tx queue * @param netdev network device */
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +0 -27
@@ -301,33 +301,6 @@ static void txqs_start(struct net_device *netdev) }/** -* \brief Wake Tx queues -* @param netdev network device -*/ -static void txqs_wake (struct net_device *netdev) -{ -struct lio *lio =GET_LIO (netdev); - -if (netif_is_multiqueue (netdev)) { -int i; - -for (i =0 ; i < netdev->num_tx_queues; i++) { -int qno = lio->linfo.txpciq[i % lio->oct_dev->num_iqs] - .s.q_no; -if (__netif_subqueue_stopped (netdev, i)) { -INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, qno, - tx_restart,1 ); -netif_wake_subqueue (netdev, i); - } - } - }else { -INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, lio->txq, - tx_restart,1 ); -netif_wake_queue (netdev); - } -} - -/** * \brief Start Tx queue * @param netdev network device */
drivers/net/ethernet/cavium/liquidio/octeon_network.h +27 -0
@@ -522,4 +522,31 @@ static inline void txqs_stop(struct net_device *netdev) } } +/** +* \brief Wake Tx queues +* @param netdev network device +*/ +static inline void txqs_wake (struct net_device *netdev) +{ +struct lio *lio =GET_LIO (netdev); + +if (netif_is_multiqueue (netdev)) { +int i; + +for (i =0 ; i < netdev->num_tx_queues; i++) { +int qno = lio->linfo.txpciq[i % + lio->oct_dev->num_iqs].s.q_no; + +if (__netif_subqueue_stopped (netdev, i)) { +INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, qno, + tx_restart,1 ); +netif_wake_subqueue (netdev, i); + } + } + }else { +INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, lio->txq, + tx_restart,1 ); +netif_wake_queue (netdev); + } +}#endif
Signature · 1 line
1.8.3.1
PATCH 3/13 liquidio: Moved common function txqs_start to octeon_network.h
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Moving common function txqs_start to octeon_network.h
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 16 ---------------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 16 ---------------- drivers/net/ethernet/cavium/liquidio/octeon_network.h | 17 +++++++++++++++++ 3 files changed, 17 insertions(+), 32 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +0 -16
@@ -509,22 +509,6 @@ static void liquidio_deinit_pci(void) }/** -* \brief Start Tx queues -* @param netdev network device -*/ -static inline void txqs_start (struct net_device *netdev) -{ -if (netif_is_multiqueue (netdev)) { -int i; - -for (i =0 ; i < netdev->num_tx_queues; i++) -netif_start_subqueue (netdev, i); - }else { -netif_start_queue (netdev); - } -} - -/** * \brief Stop Tx queue * @param netdev network device */
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +0 -16
@@ -285,22 +285,6 @@ static pci_ers_result_t liquidio_pcie_error_detected(struct pci_dev *pdev, };/** -* \brief Start Tx queues -* @param netdev network device -*/ -static void txqs_start (struct net_device *netdev) -{ -if (netif_is_multiqueue (netdev)) { -int i; - -for (i =0 ; i < netdev->num_tx_queues; i++) -netif_start_subqueue (netdev, i); - }else { -netif_start_queue (netdev); - } -} - -/** * \brief Start Tx queue * @param netdev network device */
drivers/net/ethernet/cavium/liquidio/octeon_network.h +17 -0
@@ -549,4 +549,21 @@ static inline void txqs_wake(struct net_device *netdev) netif_wake_queue(netdev); } } + +/** +* \brief Start Tx queues +* @param netdev network device +*/ +static inline void txqs_start (struct net_device *netdev) +{ +if (netif_is_multiqueue (netdev)) { +int i; + +for (i =0 ; i < netdev->num_tx_queues; i++) +netif_start_subqueue (netdev, i); + }else { +netif_start_queue (netdev); + } +} +#endif
Signature · 1 line
1.8.3.1
PATCH 4/13 liquidio: Moved common function skb_iq to to octeon_network.h
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Moving common function skb_iq to to octeon_network.h
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 10 ---------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 10 ---------- drivers/net/ethernet/cavium/liquidio/octeon_network.h | 10 ++++++++++ 3 files changed, 10 insertions(+), 20 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +0 -10
@@ -1687,16 +1687,6 @@ static int octeon_pci_os_setup(struct octeon_device *oct)return 0 ; } -static inline int skb_iq (struct lio *lio,struct sk_buff *skb) -{ -int q =0 ; - -if (netif_is_multiqueue (lio->netdev)) - q = skb->queue_mapping % lio->linfo.num_txpciq; - -return q; -} -/** * \brief Check Tx queue state for a given network buffer * @param lio per-network private data
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +0 -10
@@ -993,16 +993,6 @@ static int octeon_pci_os_setup(struct octeon_device *oct)return 0 ; } -static int skb_iq (struct lio *lio,struct sk_buff *skb) -{ -int q =0 ; - -if (netif_is_multiqueue (lio->netdev)) - q = skb->queue_mapping % lio->linfo.num_txpciq; - -return q; -} -/** * \brief Check Tx queue state for a given network buffer * @param lio per-network private data
drivers/net/ethernet/cavium/liquidio/octeon_network.h +10 -0
@@ -566,4 +566,14 @@ static inline void txqs_start(struct net_device *netdev) } } +static inline int skb_iq (struct lio *lio,struct sk_buff *skb) +{ +int q =0 ; + +if (netif_is_multiqueue (lio->netdev)) + q = skb->queue_mapping % lio->linfo.num_txpciq; + +return q; +} +#endif
Signature · 1 line
1.8.3.1
PATCH 5/13 liquidio: Removed one line function stop_txq
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Removing one line function stop_txq
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +1 -10
@@ -509,15 +509,6 @@ static void liquidio_deinit_pci(void) }/** -* \brief Stop Tx queue -* @param netdev network device -*/ -static void stop_txq (struct net_device *netdev) -{ -txqs_stop (netdev); -} - -/** * \brief Start Tx queue * @param netdev network device */
@@ -839,7 +830,7 @@ static inline void update_link_status(struct net_device *netdev, }else {dev_dbg (&oct->pci_dev->dev,"%s: link_off" , __func__);netif_carrier_off (netdev); -stop_txq (netdev); +txqs_stop (netdev); }if (lio->linfo.link.s.mtu != current_max_mtu) { netif_info(lio, probe, lio->netdev, "Max MTU changed from %d to %d\n",
Signature · 1 line
1.8.3.1
PATCH 6/13 liquidio: Removed start_txq function
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Removing start_txq function from VF and PF files
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 16 +--------------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 16 +--------------- drivers/net/ethernet/cavium/liquidio/octeon_network.h | 16 ++++++++++------ 3 files changed, 12 insertions(+), 36 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +1 -15
@@ -509,20 +509,6 @@ static void liquidio_deinit_pci(void) }/** -* \brief Start Tx queue -* @param netdev network device -*/ -static void start_txq (struct net_device *netdev) -{ -struct lio *lio =GET_LIO (netdev); - -if (lio->linfo.link.s.link_up) { -txqs_start (netdev); -return ; - } -} - -/** * \brief Wake a queue * @param netdev network device * @param q which queue to wake
@@ -2140,7 +2126,7 @@ static int liquidio_open(struct net_device *netdev)return -1 ; } -start_txq (netdev); +txqs_start (netdev);/* tell Octeon to start forwarding packets to host */ send_rx_ctrl_cmd (lio,1 );
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +1 -15
@@ -285,20 +285,6 @@ static pci_ers_result_t liquidio_pcie_error_detected(struct pci_dev *pdev, };/** -* \brief Start Tx queue -* @param netdev network device -*/ -static void start_txq (struct net_device *netdev) -{ -struct lio *lio =GET_LIO (netdev); - -if (lio->linfo.link.s.link_up) { -txqs_start (netdev); -return ; - } -} - -/** * \brief Wake a queue * @param netdev network device * @param q which queue to wake
@@ -1189,7 +1175,7 @@ static int liquidio_open(struct net_device *netdev) lio->intf_open =1 ;netif_info (lio, ifup, lio->netdev,"Interface Open, ready for traffic\n" ); -start_txq (netdev); +txqs_start (netdev);/* tell Octeon to start forwarding packets to host */ send_rx_ctrl_cmd (lio,1 );
drivers/net/ethernet/cavium/liquidio/octeon_network.h +10 -6
@@ -556,13 +556,17 @@ static inline void txqs_wake(struct net_device *netdev)*/ static inline void txqs_start (struct net_device *netdev) { -if (netif_is_multiqueue (netdev)) { -int i; +struct lio *lio =GET_LIO (netdev); -for (i =0 ; i < netdev->num_tx_queues; i++) -netif_start_subqueue (netdev, i); - }else { -netif_start_queue (netdev); +if (lio->linfo.link.s.link_up) { +if (netif_is_multiqueue (netdev)) { +int i; + +for (i =0 ; i < netdev->num_tx_queues; i++) +netif_start_subqueue (netdev, i); + }else { +netif_start_queue (netdev); + } } }
Signature · 1 line
1.8.3.1
PATCH 7/13 liquidio: Removed netif_is_multiqueue check
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Removing checks for netif_is_multiqueue.
Configuring single queue will be a multiqueue netdev with one queues.
--- drivers/net/ethernet/cavium/liquidio/lio_core.c | 18 ++--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 93 +++++++--------------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 55 ++++--------- .../net/ethernet/cavium/liquidio/octeon_network.h | 50 ++++-------- 4 files changed, 64 insertions(+), 152 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_core.c +5 -13
@@ -377,20 +377,12 @@ static void lio_update_txq_status(struct octeon_device *oct, int iq_num)return ; lio =GET_LIO (netdev); -if (netif_is_multiqueue (netdev)) { -if (__netif_subqueue_stopped (netdev, iq->q_index) && - lio->linfo.link.s.link_up && - (!octnet_iq_is_full (oct, iq_num))) { -netif_wake_subqueue (netdev, iq->q_index); -INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, iq_num, - tx_restart,1 ); - } - }else if (netif_queue_stopped (netdev) && - lio->linfo.link.s.link_up && - (!octnet_iq_is_full (oct, lio->txq))) { -INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, lio->txq, +if (__netif_subqueue_stopped (netdev, iq->q_index) && + lio->linfo.link.s.link_up && + (!octnet_iq_is_full (oct, iq_num))) { +netif_wake_subqueue (netdev, iq->q_index); +INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, iq_num, tx_restart,1 ); -netif_wake_queue (netdev); } }
drivers/net/ethernet/cavium/liquidio/lio_main.c +30 -63
135 lines not on this page · raw message
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +15 -40
86 lines not on this page · raw message
drivers/net/ethernet/cavium/liquidio/octeon_network.h +14 -36
79 lines not on this page · raw message
Signature · 1 line
1.8.3.1
PATCH 8/13 liquidio: Removed one line function stop_q
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Removing one line function stop_q
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 12 +----------- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +1 -11
@@ -519,16 +519,6 @@ static inline void wake_q(struct net_device *netdev, int q) }/** -* \brief Stop a queue -* @param netdev network device -* @param q which queue to stop -*/ -static inline void stop_q (struct net_device *netdev,int q) -{ -netif_stop_subqueue (netdev, q); -} - -/** * \brief Check Tx queue status, and take appropriate action * @param lio per-network private data * @returns 0 if full, number of queues woken up otherwise
@@ -2745,7 +2735,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev)netif_info (lio, tx_queued, lio->netdev,"Transmit queued successfully\n" );if (status ==IQ_SEND_STOP ) -stop_q (netdev, q_idx); +netif_stop_subqueue (netdev, q_idx);netif_trans_update (netdev);
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +1 -11
@@ -295,16 +295,6 @@ static void wake_q(struct net_device *netdev, int q) }/** -* \brief Stop a queue -* @param netdev network device -* @param q which queue to stop -*/ -static void stop_q (struct net_device *netdev,int q) -{ -netif_stop_subqueue (netdev, q); -} - -/** * Remove the node at the head of the list. The list would be empty at * the end of this call if there are no more nodes in the list. */
@@ -1803,7 +1793,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev)if (status ==IQ_SEND_STOP ) {dev_err (&oct->pci_dev->dev,"Rcvd IQ_SEND_STOP signal; stopping IQ-%d\n" , iq_no); -stop_q (netdev, q_idx); +netif_stop_subqueue (netdev, q_idx); }netif_trans_update (netdev);
Signature · 1 line
1.8.3.1
PATCH 9/13 liquidio: Removed one line function wake_q
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Removing one line function wake_q
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 14 ++------------ drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 12 +----------- 2 files changed, 3 insertions(+), 23 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +2 -12
@@ -509,16 +509,6 @@ static void liquidio_deinit_pci(void) }/** -* \brief Wake a queue -* @param netdev network device -* @param q which queue to wake -*/ -static inline void wake_q (struct net_device *netdev,int q) -{ -netif_wake_subqueue (netdev, q); -} - -/** * \brief Check Tx queue status, and take appropriate action * @param lio per-network private data * @returns 0 if full, number of queues woken up otherwise
@@ -536,7 +526,7 @@ static inline int check_txq_status(struct lio *lio)if (octnet_iq_is_full (lio->oct_dev, iq))continue ;if (__netif_subqueue_stopped (lio->netdev, q)) { -wake_q (lio->netdev, q); +netif_wake_subqueue (lio->netdev, q);INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, iq, tx_restart,1 ); ret_val++;
@@ -1656,7 +1646,7 @@ static inline int check_txq_state(struct lio *lio, struct sk_buff *skb)if (__netif_subqueue_stopped (lio->netdev, q)) {INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, iq, tx_restart,1 ); -wake_q (lio->netdev, q); +netif_wake_subqueue (lio->netdev, q); }return 1 ; }
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +1 -11
@@ -285,16 +285,6 @@ static pci_ers_result_t liquidio_pcie_error_detected(struct pci_dev *pdev, };/** -* \brief Wake a queue -* @param netdev network device -* @param q which queue to wake -*/ -static void wake_q (struct net_device *netdev,int q) -{ -netif_wake_subqueue (netdev, q); -} - -/** * Remove the node at the head of the list. The list would be empty at * the end of this call if there are no more nodes in the list. */
@@ -980,7 +970,7 @@ static int check_txq_state(struct lio *lio, struct sk_buff *skb)if (__netif_subqueue_stopped (lio->netdev, q)) {INCR_INSTRQUEUE_PKT_COUNT (lio->oct_dev, iq, tx_restart,1 ); -wake_q (lio->netdev, q); +netif_wake_subqueue (lio->netdev, q); }return 1 ;
Signature · 1 line
1.8.3.1
PATCH 10/13 liquidio: Function call skb_iq for deriving queue from skb
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
Using skb_iq function for deriving queue from skb
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 3 +-- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +1 -2
@@ -2528,8 +2528,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev) lio =GET_LIO (netdev); oct = lio->oct_dev; - q_idx = skb->queue_mapping; - q_idx = (q_idx % (lio->linfo.num_txpciq)); + q_idx =skb_iq (lio, skb); tag = q_idx; iq_no = lio->linfo.txpciq[q_idx].s.q_no;
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +1 -2
@@ -1604,8 +1604,7 @@ static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev) lio =GET_LIO (netdev); oct = lio->oct_dev; - q_idx = skb->queue_mapping; - q_idx = (q_idx % (lio->linfo.num_txpciq)); + q_idx =skb_iq (lio, skb); tag = q_idx; iq_no = lio->linfo.txpciq[q_idx].s.q_no;
Signature · 1 line
1.8.3.1
PATCH 11/13 liquidio: Renamed txqs_wake to wake_txqs
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
For consistency renaming txqs_wake to wake_txqs
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 4 ++-- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 4 ++-- drivers/net/ethernet/cavium/liquidio/octeon_network.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +2 -2
@@ -777,7 +777,7 @@ static inline void update_link_status(struct net_device *netdev,if (lio->linfo.link.s.link_up) {dev_dbg (&oct->pci_dev->dev,"%s: link_up" , __func__);netif_carrier_on (netdev); -txqs_wake (netdev); +wake_txqs (netdev); }else {dev_dbg (&oct->pci_dev->dev,"%s: link_off" , __func__);netif_carrier_off (netdev);
@@ -2763,7 +2763,7 @@ static void liquidio_tx_timeout(struct net_device *netdev)"Transmit timeout tx_dropped:%ld, waking up queues now!!\n" , netdev->stats.tx_dropped);netif_trans_update (netdev); -txqs_wake (netdev); +wake_txqs (netdev); } static int liquidio_vlan_rx_add_vid(struct net_device *netdev,
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +2 -2
@@ -515,7 +515,7 @@ static void update_link_status(struct net_device *netdev,if (lio->linfo.link.s.link_up) {netif_carrier_on (netdev); -txqs_wake (netdev); +wake_txqs (netdev); }else {netif_carrier_off (netdev);txqs_stop (netdev);
@@ -1822,7 +1822,7 @@ static void liquidio_tx_timeout(struct net_device *netdev)"Transmit timeout tx_dropped:%ld, waking up queues now!!\n" , netdev->stats.tx_dropped);netif_trans_update (netdev); -txqs_wake (netdev); +wake_txqs (netdev); } static int
drivers/net/ethernet/cavium/liquidio/octeon_network.h +1 -1
@@ -522,7 +522,7 @@ static inline void txqs_stop(struct net_device *netdev)* \brief Wake Tx queues * @param netdev network device */ -static inline void txqs_wake (struct net_device *netdev) +static inline void wake_txqs (struct net_device *netdev) {struct lio *lio =GET_LIO (netdev);int i, qno;
Signature · 1 line
1.8.3.1
PATCH 12/13 liquidio: Renamed txqs_stop to stop_txqs
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
For consistency renaming txqs_stop to stop_txqs
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 2 +- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 4 ++-- drivers/net/ethernet/cavium/liquidio/octeon_network.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +1 -1
@@ -781,7 +781,7 @@ static inline void update_link_status(struct net_device *netdev, }else {dev_dbg (&oct->pci_dev->dev,"%s: link_off" , __func__);netif_carrier_off (netdev); -txqs_stop (netdev); +stop_txqs (netdev); }if (lio->linfo.link.s.mtu != current_max_mtu) { netif_info(lio, probe, lio->netdev, "Max MTU changed from %d to %d\n",
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +2 -2
@@ -518,7 +518,7 @@ static void update_link_status(struct net_device *netdev,wake_txqs (netdev); }else {netif_carrier_off (netdev); -txqs_stop (netdev); +stop_txqs (netdev); }if (lio->linfo.link.s.mtu != current_max_mtu) {
@@ -1186,7 +1186,7 @@ static int liquidio_stop(struct net_device *netdev)ifstate_reset (lio,LIO_IFSTATE_RUNNING ); -txqs_stop (netdev); +stop_txqs (netdev);dev_info (&oct->pci_dev->dev,"%s interface is stopped\n" , netdev->name);
drivers/net/ethernet/cavium/liquidio/octeon_network.h +1 -1
@@ -510,7 +510,7 @@ static inline int wait_for_pending_requests(struct octeon_device *oct)* \brief Stop Tx queues * @param netdev network device */ -static inline void txqs_stop (struct net_device *netdev) +static inline void stop_txqs (struct net_device *netdev) {int i;
Signature · 1 line
1.8.3.1
PATCH 13/13 liquidio: Renamed txqs_start to start_txqs
In reply to Felix ManlunasFrom: Intiyaz Basha <[email protected]>
For consistency renaming txqs_start to start_txqs
--- drivers/net/ethernet/cavium/liquidio/lio_main.c | 2 +- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 2 +- drivers/net/ethernet/cavium/liquidio/octeon_network.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/cavium/liquidio/lio_main.c +1 -1
@@ -2086,7 +2086,7 @@ static int liquidio_open(struct net_device *netdev)return -1 ; } -txqs_start (netdev); +start_txqs (netdev);/* tell Octeon to start forwarding packets to host */ send_rx_ctrl_cmd (lio,1 );
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +1 -1
@@ -1144,7 +1144,7 @@ static int liquidio_open(struct net_device *netdev) lio->intf_open =1 ;netif_info (lio, ifup, lio->netdev,"Interface Open, ready for traffic\n" ); -txqs_start (netdev); +start_txqs (netdev);/* tell Octeon to start forwarding packets to host */ send_rx_ctrl_cmd (lio,1 );
drivers/net/ethernet/cavium/liquidio/octeon_network.h +1 -1
@@ -542,7 +542,7 @@ static inline void wake_txqs(struct net_device *netdev)* \brief Start Tx queues * @param netdev network device */ -static inline void txqs_start (struct net_device *netdev) +static inline void start_txqs (struct net_device *netdev) {struct lio *lio =GET_LIO (netdev);int i;
Signature · 1 line
1.8.3.1
David Miller
maintainerFrom: Felix Manlunas <[email protected]>
Date: Fri, 23 Mar 2018 17:36:18 -0700
Quoted 4 lines
From: Intiyaz Basha <[email protected]>
Moved some common function to
octeon_network.h
Removed some unwanted functions and checks.
Series applied, thanks.