Re: [PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-02-06 Thread Nikolay Aleksandrov
On 07/02/2019 04:08, Callum Sinclair wrote: > Currently the only way to clear the mfc cache was to delete the entries > one by one using the MRT_DEL_MFC socket option or to destroy and > recreate the socket. > > Create a new socket option which will clear the multicast forwarding > cache on the so

ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-02-06 Thread Callum Sinclair
sockopt to clear mfc cache only include/uapi/linux/mroute.h | 7 +++- include/uapi/linux/mroute6.h | 7 +++- net/ipv4/ipmr.c | 69 +- net/ipv6/ip6mr.c | 73 ++-- 4 files changed, 99 insertions(+), 57 deletions

[PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-02-06 Thread Callum Sinclair
Currently the only way to clear the mfc cache was to delete the entries one by one using the MRT_DEL_MFC socket option or to destroy and recreate the socket. Create a new socket option which will clear the multicast forwarding cache on the socket without destroying the socket. Signed-off-by: Call

Re: [PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-02-05 Thread Nikolay Aleksandrov
On 05/02/2019 04:58, Callum Sinclair wrote: > Currently the only way to clear the mfc cache was to delete the entries > one by one using the MRT_DEL_MFC socket option or to destroy and > recreate the socket. > > Create a new socket option which will clear the multicast forwarding > cache on the so

[PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-02-04 Thread Callum Sinclair
Currently the only way to clear the mfc cache was to delete the entries one by one using the MRT_DEL_MFC socket option or to destroy and recreate the socket. Create a new socket option which will clear the multicast forwarding cache on the socket without destroying the socket. Signed-off-by: Call

[PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-02-04 Thread Callum Sinclair
): ipmr: ip6mr: Create new sockopt to clear mfc cache only include/uapi/linux/mroute.h | 3 ++- include/uapi/linux/mroute6.h | 3 ++- net/ipv4/ipmr.c | 40 +-- net/ipv6/ip6mr.c | 46 +++- 4 files changed, 61

Re: [PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-02-02 Thread David Miller
From: Callum Sinclair Date: Thu, 31 Jan 2019 09:52:09 +1300 > > -/* Close the multicast socket, and clear the vif tables etc */ > -static void mroute_clean_tables(struct mr_table *mrt, bool all) > +/* Clear the vif tables */ > +static void mroute_clean_cache(struct mr_table *mrt, bool all) > {

[PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-01-30 Thread Callum Sinclair
Created a way to clear the multicast forwarding cache on a socket without having to either remove the entries manually using the delete entry socket option or destroy and recreate the multicast socket. Patch Set 2: - Fix Compile Errors Callum Sinclair (1): ipmr: ip6mr: Create new sockopt to

[PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-01-30 Thread Callum Sinclair
Currently the only way to clear the mfc cache was to delete the entries one by one using the MRT_DEL_MFC socket option or to destroy and recreate the socket. Create a new socket option which will clear the multicast forwarding cache on the socket without destroying the socket. Signed-off-by: Call

Re: [PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-01-29 Thread kbuild test robot
/commits/Callum-Sinclair/ipmr-ip6mr-Create-new-sockopt-to-clear-mfc-cache-only/20190130-104146 config: i386-defconfig (attached as .config) compiler: gcc-8 (Debian 8.2.0-14) 8.2.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by

Re: [PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-01-29 Thread kbuild test robot
/commits/Callum-Sinclair/ipmr-ip6mr-Create-new-sockopt-to-clear-mfc-cache-only/20190130-104146 config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 8.2.0-11) 8.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O

[PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-01-29 Thread Callum Sinclair
Currently the only way to clear the mfc cache was to delete the entries one by one using the MRT_DEL_MFC socket option or to destroy and recreate the socket. Create a new socket option which will clear the multicast forwarding cache on the socket without destroying the socket. Signed-off-by: Call

[PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-01-29 Thread Callum Sinclair
Created a way to clear the multicast forwarding cache on a socket without having to either remove the entries manually using the delete entry socket option or destroy and recreate the multicast socket. Callum Sinclair (1): ipmr: ip6mr: Create new sockopt to clear mfc cache only include/uapi