[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MW4PR11MB57761A084A3A556F4070F8CDFDBB9@MW4PR11MB5776.namprd11.prod.outlook.com>
Date: Wed, 29 Jun 2022 07:44:50 +0000
From: "Drewek, Wojciech" <wojciech.drewek@...el.com>
To: Jakub Kicinski <kuba@...nel.org>,
Marcin Szycik <marcin.szycik@...ux.intel.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Nguyen, Anthony L" <anthony.l.nguyen@...el.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"xiyou.wangcong@...il.com" <xiyou.wangcong@...il.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"gustavoars@...nel.org" <gustavoars@...nel.org>,
"baowen.zheng@...igine.com" <baowen.zheng@...igine.com>,
"boris.sukholitko@...adcom.com" <boris.sukholitko@...adcom.com>,
"edumazet@...gle.com" <edumazet@...gle.com>,
"jhs@...atatu.com" <jhs@...atatu.com>,
"jiri@...nulli.us" <jiri@...nulli.us>,
"kurt@...utronix.de" <kurt@...utronix.de>,
"pablo@...filter.org" <pablo@...filter.org>,
"pabeni@...hat.com" <pabeni@...hat.com>,
"paulb@...dia.com" <paulb@...dia.com>,
"simon.horman@...igine.com" <simon.horman@...igine.com>,
"komachi.yoshiki@...il.com" <komachi.yoshiki@...il.com>,
"zhangkaiheb@....com" <zhangkaiheb@....com>,
"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>,
"michal.swiatkowski@...ux.intel.com"
<michal.swiatkowski@...ux.intel.com>,
"Lobakin, Alexandr" <alexandr.lobakin@...el.com>
Subject: RE: [RFC PATCH net-next v2 1/4] flow_dissector: Add PPPoE dissectors
> -----Original Message-----
> From: Jakub Kicinski <kuba@...nel.org>
> Sent: środa, 29 czerwca 2022 06:40
> To: Marcin Szycik <marcin.szycik@...ux.intel.com>
> Cc: netdev@...r.kernel.org; Nguyen, Anthony L <anthony.l.nguyen@...el.com>; davem@...emloft.net;
> xiyou.wangcong@...il.com; Brandeburg, Jesse <jesse.brandeburg@...el.com>; gustavoars@...nel.org;
> baowen.zheng@...igine.com; boris.sukholitko@...adcom.com; edumazet@...gle.com; jhs@...atatu.com; jiri@...nulli.us;
> kurt@...utronix.de; pablo@...filter.org; pabeni@...hat.com; paulb@...dia.com; simon.horman@...igine.com;
> komachi.yoshiki@...il.com; zhangkaiheb@....com; intel-wired-lan@...ts.osuosl.org; michal.swiatkowski@...ux.intel.com; Drewek,
> Wojciech <wojciech.drewek@...el.com>; Lobakin, Alexandr <alexandr.lobakin@...el.com>
> Subject: Re: [RFC PATCH net-next v2 1/4] flow_dissector: Add PPPoE dissectors
>
> On Tue, 28 Jun 2022 13:29:15 +0200 Marcin Szycik wrote:
> > +static bool is_ppp_proto_supported(__be16 proto)
>
> What does supported mean in this context?
It means that only those protocols are going to be dissected.
>
> > +{
> > + switch (ntohs(proto)) {
> > + case PPP_AT:
>
> Byte swap on the constant.
Sure, it will be included in v3
>
> > + case PPP_IPX:
> > + case PPP_VJC_COMP:
> > + case PPP_VJC_UNCOMP:
> > + case PPP_MP:
> > + case PPP_COMPFRAG:
> > + case PPP_COMP:
> > + case PPP_MPLS_UC:
> > + case PPP_MPLS_MC:
> > + case PPP_IPCP:
> > + case PPP_ATCP:
> > + case PPP_IPXCP:
> > + case PPP_IPV6CP:
> > + case PPP_CCPFRAG:
> > + case PPP_MPLSCP:
> > + case PPP_LCP:
> > + case PPP_PAP:
> > + case PPP_LQR:
> > + case PPP_CHAP:
> > + case PPP_CBCP:
> > + return true;
> > + default:
> > + return false;
> > + }
> > +}
Powered by blists - more mailing lists