[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220628214020.0f83fc21@kernel.org>
Date: Tue, 28 Jun 2022 21:40:20 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Marcin Szycik <marcin.szycik@...ux.intel.com>
Cc: netdev@...r.kernel.org, anthony.l.nguyen@...el.com,
davem@...emloft.net, xiyou.wangcong@...il.com,
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, wojciech.drewek@...el.com,
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?
> +{
> + switch (ntohs(proto)) {
> + case PPP_AT:
Byte swap on the constant.
> + 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