@@ -321,13 +321,13 @@ EXPORT_SYMBOL(can_send);
321
321
* af_can rx path
322
322
*/
323
323
324
- static struct dev_rcv_lists * find_dev_rcv_lists (struct net * net ,
324
+ static struct can_dev_rcv_lists * find_dev_rcv_lists (struct net * net ,
325
325
struct net_device * dev )
326
326
{
327
327
if (!dev )
328
328
return net -> can .can_rx_alldev_list ;
329
329
else
330
- return (struct dev_rcv_lists * )dev -> ml_priv ;
330
+ return (struct can_dev_rcv_lists * )dev -> ml_priv ;
331
331
}
332
332
333
333
/**
@@ -381,7 +381,7 @@ static unsigned int effhash(canid_t can_id)
381
381
* Reduced can_id to have a preprocessed filter compare value.
382
382
*/
383
383
static struct hlist_head * find_rcv_list (canid_t * can_id , canid_t * mask ,
384
- struct dev_rcv_lists * d )
384
+ struct can_dev_rcv_lists * d )
385
385
{
386
386
canid_t inv = * can_id & CAN_INV_FILTER ; /* save flag before masking */
387
387
@@ -464,7 +464,7 @@ int can_rx_register(struct net *net, struct net_device *dev, canid_t can_id,
464
464
{
465
465
struct receiver * r ;
466
466
struct hlist_head * rl ;
467
- struct dev_rcv_lists * d ;
467
+ struct can_dev_rcv_lists * d ;
468
468
struct s_pstats * can_pstats = net -> can .can_pstats ;
469
469
int err = 0 ;
470
470
@@ -542,7 +542,7 @@ void can_rx_unregister(struct net *net, struct net_device *dev, canid_t can_id,
542
542
struct receiver * r = NULL ;
543
543
struct hlist_head * rl ;
544
544
struct s_pstats * can_pstats = net -> can .can_pstats ;
545
- struct dev_rcv_lists * d ;
545
+ struct can_dev_rcv_lists * d ;
546
546
547
547
if (dev && dev -> type != ARPHRD_CAN )
548
548
return ;
@@ -615,7 +615,7 @@ static inline void deliver(struct sk_buff *skb, struct receiver *r)
615
615
r -> matches ++ ;
616
616
}
617
617
618
- static int can_rcv_filter (struct dev_rcv_lists * d , struct sk_buff * skb )
618
+ static int can_rcv_filter (struct can_dev_rcv_lists * d , struct sk_buff * skb )
619
619
{
620
620
struct receiver * r ;
621
621
int matches = 0 ;
@@ -682,7 +682,7 @@ static int can_rcv_filter(struct dev_rcv_lists *d, struct sk_buff *skb)
682
682
683
683
static void can_receive (struct sk_buff * skb , struct net_device * dev )
684
684
{
685
- struct dev_rcv_lists * d ;
685
+ struct can_dev_rcv_lists * d ;
686
686
struct net * net = dev_net (dev );
687
687
struct s_stats * can_stats = net -> can .can_stats ;
688
688
int matches ;
@@ -829,7 +829,7 @@ static int can_notifier(struct notifier_block *nb, unsigned long msg,
829
829
void * ptr )
830
830
{
831
831
struct net_device * dev = netdev_notifier_info_to_dev (ptr );
832
- struct dev_rcv_lists * d ;
832
+ struct can_dev_rcv_lists * d ;
833
833
834
834
if (dev -> type != ARPHRD_CAN )
835
835
return NOTIFY_DONE ;
@@ -874,7 +874,7 @@ static int can_pernet_init(struct net *net)
874
874
{
875
875
spin_lock_init (& net -> can .can_rcvlists_lock );
876
876
net -> can .can_rx_alldev_list =
877
- kzalloc (sizeof (struct dev_rcv_lists ), GFP_KERNEL );
877
+ kzalloc (sizeof (struct can_dev_rcv_lists ), GFP_KERNEL );
878
878
if (!net -> can .can_rx_alldev_list )
879
879
goto out ;
880
880
net -> can .can_stats = kzalloc (sizeof (struct s_stats ), GFP_KERNEL );
@@ -920,7 +920,7 @@ static void can_pernet_exit(struct net *net)
920
920
rcu_read_lock ();
921
921
for_each_netdev_rcu (net , dev ) {
922
922
if (dev -> type == ARPHRD_CAN && dev -> ml_priv ) {
923
- struct dev_rcv_lists * d = dev -> ml_priv ;
923
+ struct can_dev_rcv_lists * d = dev -> ml_priv ;
924
924
925
925
BUG_ON (d -> entries );
926
926
kfree (d );
0 commit comments