Re: [PATCH RFC net-next 01/20] net: Move fib_convert_metrics to dst core

2018-02-26 Thread David Ahern
On 2/26/18 12:05 PM, David Miller wrote: > From: David Ahern > Date: Sun, 25 Feb 2018 11:47:11 -0800 > >> diff --git a/net/core/dst.c b/net/core/dst.c >> index 007aa0b08291..5f70bc832bec 100644 >> --- a/net/core/dst.c >> +++ b/net/core/dst.c > ... >> +val = tcp_ca_get_key_by_n

Re: [PATCH RFC net-next 01/20] net: Move fib_convert_metrics to dst core

2018-02-26 Thread David Miller
From: David Ahern Date: Sun, 25 Feb 2018 11:47:11 -0800 > diff --git a/net/core/dst.c b/net/core/dst.c > index 007aa0b08291..5f70bc832bec 100644 > --- a/net/core/dst.c > +++ b/net/core/dst.c ... > + val = tcp_ca_get_key_by_name(net, tmp, &ecn_ca); > + if (v

[PATCH RFC net-next 01/20] net: Move fib_convert_metrics to dst core

2018-02-25 Thread David Ahern
Move logic of fib_convert_metrics into dst_metrics_convert. This allows the code that converts netlink attributes into metrics struct to be re-used in a later patch by IPv6. This is mostly a code move only; it involvesthe following changes to variable names: - fi->fib_net becomes net - fc_mx a