@@ -318,8 +318,7 @@ static const struct rt6_info ip6_blk_hole_entry_template = {
318
318
/* allocate dst with ip6_dst_ops */
319
319
static struct rt6_info * __ip6_dst_alloc (struct net * net ,
320
320
struct net_device * dev ,
321
- int flags ,
322
- struct fib6_table * table )
321
+ int flags )
323
322
{
324
323
struct rt6_info * rt = dst_alloc (& net -> ipv6 .ip6_dst_ops , dev ,
325
324
0 , DST_OBSOLETE_FORCE_CHK , flags );
@@ -336,10 +335,9 @@ static struct rt6_info *__ip6_dst_alloc(struct net *net,
336
335
337
336
static struct rt6_info * ip6_dst_alloc (struct net * net ,
338
337
struct net_device * dev ,
339
- int flags ,
340
- struct fib6_table * table )
338
+ int flags )
341
339
{
342
- struct rt6_info * rt = __ip6_dst_alloc (net , dev , flags , table );
340
+ struct rt6_info * rt = __ip6_dst_alloc (net , dev , flags );
343
341
344
342
if (rt ) {
345
343
rt -> rt6i_pcpu = alloc_percpu_gfp (struct rt6_info * , GFP_ATOMIC );
@@ -950,8 +948,7 @@ static struct rt6_info *ip6_rt_cache_alloc(struct rt6_info *ort,
950
948
if (ort -> rt6i_flags & (RTF_CACHE | RTF_PCPU ))
951
949
ort = (struct rt6_info * )ort -> dst .from ;
952
950
953
- rt = __ip6_dst_alloc (dev_net (ort -> dst .dev ), ort -> dst .dev ,
954
- 0 , ort -> rt6i_table );
951
+ rt = __ip6_dst_alloc (dev_net (ort -> dst .dev ), ort -> dst .dev , 0 );
955
952
956
953
if (!rt )
957
954
return NULL ;
@@ -983,8 +980,7 @@ static struct rt6_info *ip6_rt_pcpu_alloc(struct rt6_info *rt)
983
980
struct rt6_info * pcpu_rt ;
984
981
985
982
pcpu_rt = __ip6_dst_alloc (dev_net (rt -> dst .dev ),
986
- rt -> dst .dev , rt -> dst .flags ,
987
- rt -> rt6i_table );
983
+ rt -> dst .dev , rt -> dst .flags );
988
984
989
985
if (!pcpu_rt )
990
986
return NULL ;
@@ -1555,7 +1551,7 @@ struct dst_entry *icmp6_dst_alloc(struct net_device *dev,
1555
1551
if (unlikely (!idev ))
1556
1552
return ERR_PTR (- ENODEV );
1557
1553
1558
- rt = ip6_dst_alloc (net , dev , 0 , NULL );
1554
+ rt = ip6_dst_alloc (net , dev , 0 );
1559
1555
if (unlikely (!rt )) {
1560
1556
in6_dev_put (idev );
1561
1557
dst = ERR_PTR (- ENOMEM );
@@ -1742,7 +1738,8 @@ int ip6_route_add(struct fib6_config *cfg)
1742
1738
if (!table )
1743
1739
goto out ;
1744
1740
1745
- rt = ip6_dst_alloc (net , NULL , (cfg -> fc_flags & RTF_ADDRCONF ) ? 0 : DST_NOCOUNT , table );
1741
+ rt = ip6_dst_alloc (net , NULL ,
1742
+ (cfg -> fc_flags & RTF_ADDRCONF ) ? 0 : DST_NOCOUNT );
1746
1743
1747
1744
if (!rt ) {
1748
1745
err = - ENOMEM ;
@@ -2399,7 +2396,7 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
2399
2396
{
2400
2397
struct net * net = dev_net (idev -> dev );
2401
2398
struct rt6_info * rt = ip6_dst_alloc (net , net -> loopback_dev ,
2402
- DST_NOCOUNT , NULL );
2399
+ DST_NOCOUNT );
2403
2400
if (!rt )
2404
2401
return ERR_PTR (- ENOMEM );
2405
2402
0 commit comments