Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

can: rx-offload: rename can_rx_offload_irq_queue_err_skb() to can_rx_offload_queue_tail()

This function has nothing todo with error.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Oleksij Rempel and committed by
Marc Kleine-Budde
4530ec36 ed72bc8b

+7 -5
+2 -2
drivers/net/can/flexcan.c
··· 610 610 if (tx_errors) 611 611 dev->stats.tx_errors++; 612 612 613 - can_rx_offload_irq_queue_err_skb(&priv->offload, skb); 613 + can_rx_offload_queue_tail(&priv->offload, skb); 614 614 } 615 615 616 616 static void flexcan_irq_state(struct net_device *dev, u32 reg_esr) ··· 650 650 if (unlikely(new_state == CAN_STATE_BUS_OFF)) 651 651 can_bus_off(dev); 652 652 653 - can_rx_offload_irq_queue_err_skb(&priv->offload, skb); 653 + can_rx_offload_queue_tail(&priv->offload, skb); 654 654 } 655 655 656 656 static inline struct flexcan_priv *rx_offload_to_priv(struct can_rx_offload *offload)
+3 -2
drivers/net/can/rx-offload.c
··· 257 257 } 258 258 EXPORT_SYMBOL_GPL(can_rx_offload_get_echo_skb); 259 259 260 - int can_rx_offload_irq_queue_err_skb(struct can_rx_offload *offload, struct sk_buff *skb) 260 + int can_rx_offload_queue_tail(struct can_rx_offload *offload, 261 + struct sk_buff *skb) 261 262 { 262 263 if (skb_queue_len(&offload->skb_queue) > 263 264 offload->skb_queue_len_max) ··· 269 268 270 269 return 0; 271 270 } 272 - EXPORT_SYMBOL_GPL(can_rx_offload_irq_queue_err_skb); 271 + EXPORT_SYMBOL_GPL(can_rx_offload_queue_tail); 273 272 274 273 static int can_rx_offload_init_queue(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight) 275 274 {
+2 -1
include/linux/can/rx-offload.h
··· 45 45 struct sk_buff *skb, u32 timestamp); 46 46 unsigned int can_rx_offload_get_echo_skb(struct can_rx_offload *offload, 47 47 unsigned int idx, u32 timestamp); 48 - int can_rx_offload_irq_queue_err_skb(struct can_rx_offload *offload, struct sk_buff *skb); 48 + int can_rx_offload_queue_tail(struct can_rx_offload *offload, 49 + struct sk_buff *skb); 49 50 void can_rx_offload_reset(struct can_rx_offload *offload); 50 51 void can_rx_offload_del(struct can_rx_offload *offload); 51 52 void can_rx_offload_enable(struct can_rx_offload *offload);