[libvirt] [PATCH v3 11/20] nwfilter: convert IP address learning code to virNWFilterBindingDefPtr

John Ferlan jferlan at redhat.com
Sun Jun 17 12:28:11 UTC 2018



On 06/14/2018 08:33 AM, Daniel P. Berrangé wrote:
> Use the virNWFilterBindingDefPTr struct in the IP address learning code
> directly.
> 
> Reviewed-by: John Ferlan <jferlan at redhat.com>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>  src/nwfilter/nwfilter_gentech_driver.c |   7 +-
>  src/nwfilter/nwfilter_learnipaddr.c    | 106 +++++++------------------
>  src/nwfilter/nwfilter_learnipaddr.h    |   7 +-
>  3 files changed, 32 insertions(+), 88 deletions(-)


R-By still applies, but please let's...

> --- a/src/nwfilter/nwfilter_learnipaddr.c
> +++ b/src/nwfilter/nwfilter_learnipaddr.c

[...]

> @@ -737,19 +724,14 @@ learnIPAddressThread(void *arg)
>   */

Adjust the comments above here to replace the ifname, linkdev, macaddr,
filtername, and filterparams with @binding

>  int
>  virNWFilterLearnIPAddress(virNWFilterTechDriverPtr techdriver,
> -                          const char *ifname,
> +                          virNWFilterBindingDefPtr binding,
>                            int ifindex,
> -                          const char *linkdev,
> -                          const virMacAddr *macaddr,
> -                          const char *filtername,
> -                          virHashTablePtr filterparams,
>                            virNWFilterDriverStatePtr driver,
>                            int howDetect)

[...]




More information about the libvir-list mailing list