Message ID | 20201107193515.1469030-3-vincent@bernat.ch |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
Series | [net-next,v2,1/3] net: evaluate net.ipvX.conf.all.ignore_routes_with_linkdown | expand |
Context | Check | Description |
---|---|---|
jkicinski/cover_letter | warning | Series does not have a cover letter |
jkicinski/fixes_present | success | Link |
jkicinski/patch_count | success | Link |
jkicinski/tree_selection | success | Clearly marked for net-next |
jkicinski/subject_prefix | success | Link |
jkicinski/source_inline | success | Was 0 now: 0 |
jkicinski/verify_signedoff | success | Link |
jkicinski/module_param | success | Was 0 now: 0 |
jkicinski/build_32bit | success | Errors and warnings before: 642 this patch: 642 |
jkicinski/kdoc | success | Errors and warnings before: 0 this patch: 0 |
jkicinski/verify_fixes | success | Link |
jkicinski/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 8 lines checked |
jkicinski/build_allmodconfig_warn | success | Errors and warnings before: 729 this patch: 729 |
jkicinski/header_inline | success | Link |
jkicinski/stable | success | Stable not CCed |
On Sat, 7 Nov 2020 20:35:14 +0100 Vincent Bernat wrote: > Introduced in 65324144b50b, the "proxy_arp_vlan" sysctl is a > per-interface sysctl to tune proxy ARP support for private VLANs. > While the "all" variant is exposed, it was a noop and never evaluated. > We use the usual "or" logic for this kind of sysctls. > > Fixes: 65324144b50b ("net: RFC3069, private VLAN proxy arp support") > Signed-off-by: Vincent Bernat <vincent@bernat.ch> > --- > include/linux/inetdevice.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > CC Jesper I know this is 10 year old code, but can we get an ack for applying this to net-next? > diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h > index 3bbcddd22df8..53aa0343bf69 100644 > --- a/include/linux/inetdevice.h > +++ b/include/linux/inetdevice.h > @@ -105,7 +105,7 @@ static inline void ipv4_devconf_setall(struct in_device *in_dev) > > #define IN_DEV_LOG_MARTIANS(in_dev) IN_DEV_ORCONF((in_dev), LOG_MARTIANS) > #define IN_DEV_PROXY_ARP(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP) > -#define IN_DEV_PROXY_ARP_PVLAN(in_dev) IN_DEV_CONF_GET(in_dev, PROXY_ARP_PVLAN) > +#define IN_DEV_PROXY_ARP_PVLAN(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP_PVLAN) > #define IN_DEV_SHARED_MEDIA(in_dev) IN_DEV_ORCONF((in_dev), SHARED_MEDIA) > #define IN_DEV_TX_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), SEND_REDIRECTS) > #define IN_DEV_SEC_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), \
On Tue, 10 Nov 2020 15:21:18 -0800 Jakub Kicinski <kuba@kernel.org> wrote: > On Sat, 7 Nov 2020 20:35:14 +0100 Vincent Bernat wrote: > > Introduced in 65324144b50b, the "proxy_arp_vlan" sysctl is a ^ pvlan The sysctl is called "proxy_arp_pvlan" > > per-interface sysctl to tune proxy ARP support for private VLANs. > > While the "all" variant is exposed, it was a noop and never evaluated. > > We use the usual "or" logic for this kind of sysctls. > > > > Fixes: 65324144b50b ("net: RFC3069, private VLAN proxy arp support") > > Signed-off-by: Vincent Bernat <vincent@bernat.ch> > > --- > > include/linux/inetdevice.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > CC Jesper > > I know this is 10 year old code, but can we get an ack for applying > this to net-next? ACK, I agree that the "all" variant doesn't make sense for proxy_arp_pvlan. Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> > > diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h > > index 3bbcddd22df8..53aa0343bf69 100644 > > --- a/include/linux/inetdevice.h > > +++ b/include/linux/inetdevice.h > > @@ -105,7 +105,7 @@ static inline void ipv4_devconf_setall(struct in_device *in_dev) > > > > #define IN_DEV_LOG_MARTIANS(in_dev) IN_DEV_ORCONF((in_dev), LOG_MARTIANS) > > #define IN_DEV_PROXY_ARP(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP) > > -#define IN_DEV_PROXY_ARP_PVLAN(in_dev) IN_DEV_CONF_GET(in_dev, PROXY_ARP_PVLAN) > > +#define IN_DEV_PROXY_ARP_PVLAN(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP_PVLAN) > > #define IN_DEV_SHARED_MEDIA(in_dev) IN_DEV_ORCONF((in_dev), SHARED_MEDIA) > > #define IN_DEV_TX_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), SEND_REDIRECTS) > > #define IN_DEV_SEC_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), \
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index 3bbcddd22df8..53aa0343bf69 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -105,7 +105,7 @@ static inline void ipv4_devconf_setall(struct in_device *in_dev) #define IN_DEV_LOG_MARTIANS(in_dev) IN_DEV_ORCONF((in_dev), LOG_MARTIANS) #define IN_DEV_PROXY_ARP(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP) -#define IN_DEV_PROXY_ARP_PVLAN(in_dev) IN_DEV_CONF_GET(in_dev, PROXY_ARP_PVLAN) +#define IN_DEV_PROXY_ARP_PVLAN(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP_PVLAN) #define IN_DEV_SHARED_MEDIA(in_dev) IN_DEV_ORCONF((in_dev), SHARED_MEDIA) #define IN_DEV_TX_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), SEND_REDIRECTS) #define IN_DEV_SEC_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), \
Introduced in 65324144b50b, the "proxy_arp_vlan" sysctl is a per-interface sysctl to tune proxy ARP support for private VLANs. While the "all" variant is exposed, it was a noop and never evaluated. We use the usual "or" logic for this kind of sysctls. Fixes: 65324144b50b ("net: RFC3069, private VLAN proxy arp support") Signed-off-by: Vincent Bernat <vincent@bernat.ch> --- include/linux/inetdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)