Skip to content

Commit 4530ec3

Browse files
oleremmarckleinebudde
authored andcommitted
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>
1 parent ed72bc8 commit 4530ec3

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎drivers/net/can/flexcan.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static void flexcan_irq_bus_err(struct net_device *dev, u32 reg_esr)
610610
if (tx_errors)
611611
dev->stats.tx_errors++;
612612

613-
can_rx_offload_irq_queue_err_skb(&priv->offload, skb);
613+
can_rx_offload_queue_tail(&priv->offload, skb);
614614
}
615615

616616
static void flexcan_irq_state(struct net_device *dev, u32 reg_esr)
@@ -650,7 +650,7 @@ static void flexcan_irq_state(struct net_device *dev, u32 reg_esr)
650650
if (unlikely(new_state == CAN_STATE_BUS_OFF))
651651
can_bus_off(dev);
652652

653-
can_rx_offload_irq_queue_err_skb(&priv->offload, skb);
653+
can_rx_offload_queue_tail(&priv->offload, skb);
654654
}
655655

656656
static inline struct flexcan_priv *rx_offload_to_priv(struct can_rx_offload *offload)

‎drivers/net/can/rx-offload.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ unsigned int can_rx_offload_get_echo_skb(struct can_rx_offload *offload,
257257
}
258258
EXPORT_SYMBOL_GPL(can_rx_offload_get_echo_skb);
259259

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)
261262
{
262263
if (skb_queue_len(&offload->skb_queue) >
263264
offload->skb_queue_len_max)
@@ -268,7 +269,7 @@ int can_rx_offload_irq_queue_err_skb(struct can_rx_offload *offload, struct sk_b
268269

269270
return 0;
270271
}
271-
EXPORT_SYMBOL_GPL(can_rx_offload_irq_queue_err_skb);
272+
EXPORT_SYMBOL_GPL(can_rx_offload_queue_tail);
272273

273274
static int can_rx_offload_init_queue(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight)
274275
{

‎include/linux/can/rx-offload.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ int can_rx_offload_queue_sorted(struct can_rx_offload *offload,
4545
struct sk_buff *skb, u32 timestamp);
4646
unsigned int can_rx_offload_get_echo_skb(struct can_rx_offload *offload,
4747
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);
4950
void can_rx_offload_reset(struct can_rx_offload *offload);
5051
void can_rx_offload_del(struct can_rx_offload *offload);
5152
void can_rx_offload_enable(struct can_rx_offload *offload);

0 commit comments

Comments
 (0)