Skip to content

Commit cd2a9e6

Browse files
David Aherndavem330
authored andcommitted
net: l3mdev: Remove const from flowi6 arg to get_rt6_dst
Allow drivers to pass flow arg to functions where the arg is not const and allow the driver to make updates as needed (eg., setting oif). Signed-off-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c9ad5a6 commit cd2a9e6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/net/vrf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ static struct sk_buff *vrf_l3_rcv(struct net_device *vrf_dev,
861861

862862
#if IS_ENABLED(CONFIG_IPV6)
863863
static struct dst_entry *vrf_get_rt6_dst(const struct net_device *dev,
864-
const struct flowi6 *fl6)
864+
struct flowi6 *fl6)
865865
{
866866
struct dst_entry *dst = NULL;
867867

include/net/l3mdev.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct l3mdev_ops {
3838

3939
/* IPv6 ops */
4040
struct dst_entry * (*l3mdev_get_rt6_dst)(const struct net_device *dev,
41-
const struct flowi6 *fl6);
41+
struct flowi6 *fl6);
4242
};
4343

4444
#ifdef CONFIG_NET_L3_MASTER_DEV
@@ -139,7 +139,7 @@ static inline bool netif_index_is_l3_master(struct net *net, int ifindex)
139139

140140
int l3mdev_get_saddr(struct net *net, int ifindex, struct flowi4 *fl4);
141141

142-
struct dst_entry *l3mdev_get_rt6_dst(struct net *net, const struct flowi6 *fl6);
142+
struct dst_entry *l3mdev_get_rt6_dst(struct net *net, struct flowi6 *fl6);
143143

144144
static inline
145145
struct sk_buff *l3mdev_l3_rcv(struct sk_buff *skb, u16 proto)
@@ -225,7 +225,7 @@ static inline int l3mdev_get_saddr(struct net *net, int ifindex,
225225
}
226226

227227
static inline
228-
struct dst_entry *l3mdev_get_rt6_dst(struct net *net, const struct flowi6 *fl6)
228+
struct dst_entry *l3mdev_get_rt6_dst(struct net *net, struct flowi6 *fl6)
229229
{
230230
return NULL;
231231
}

net/l3mdev/l3mdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ EXPORT_SYMBOL_GPL(l3mdev_fib_table_by_index);
108108
*/
109109

110110
struct dst_entry *l3mdev_get_rt6_dst(struct net *net,
111-
const struct flowi6 *fl6)
111+
struct flowi6 *fl6)
112112
{
113113
struct dst_entry *dst = NULL;
114114
struct net_device *dev;

0 commit comments

Comments
 (0)