On Fri, Aug 12, 2022 at 04:54:56PM +0300, Vitaliy Makkoveev wrote:
> Subj.

OK bluhm@

> Index: sys/net/if_pflow.c
> ===================================================================
> RCS file: /cvs/src/sys/net/if_pflow.c,v
> retrieving revision 1.94
> diff -u -p -r1.94 if_pflow.c
> --- sys/net/if_pflow.c        6 Jun 2022 14:45:41 -0000       1.94
> +++ sys/net/if_pflow.c        12 Aug 2022 13:52:22 -0000
> @@ -592,10 +592,7 @@ pflow_setmtu(struct pflow_softc *sc, int
>  {
>       int     mtu;
>  
> -     if (sc->sc_pflow_ifp && sc->sc_pflow_ifp->if_mtu < mtu_req)
> -             mtu = sc->sc_pflow_ifp->if_mtu;
> -     else
> -             mtu = mtu_req;
> +     mtu = mtu_req;
>  
>       switch (sc->sc_version) {
>       case PFLOW_PROTO_5:
> Index: sys/net/if_pflow.h
> ===================================================================
> RCS file: /cvs/src/sys/net/if_pflow.h,v
> retrieving revision 1.17
> diff -u -p -r1.17 if_pflow.h
> --- sys/net/if_pflow.h        31 May 2017 13:05:43 -0000      1.17
> +++ sys/net/if_pflow.h        12 Aug 2022 13:52:22 -0000
> @@ -171,7 +171,6 @@ struct pflow_ipfix_flow6 {
>  
>  struct pflow_softc {
>       struct ifnet             sc_if;
> -     struct ifnet            *sc_pflow_ifp;
>  
>       unsigned int             sc_count;
>       unsigned int             sc_count4;
> @@ -190,7 +189,6 @@ struct pflow_softc {
>       struct mbuf             *send_nam;
>       struct sockaddr         *sc_flowsrc;
>       struct sockaddr         *sc_flowdst;
> -     u_char                   sc_send_templates;
>       struct pflow_ipfix_tmpl  sc_tmpl_ipfix;
>       u_int8_t                 sc_version;
>       struct mbuf             *sc_mbuf;       /* current cumulative mbuf */

Reply via email to