2014-07-24 08:14, Zhang, Helin: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2014-07-24 14:42, Helin Zhang: > > > For better understanding, 'PCTYPE' was added to the name of i40e RSS > > > shift macros. > > > > > > Signed-off-by: Helin Zhang <helin.zhang at intel.com> > > > > > -#define ETH_RSS_NONF_IPV4_UDP_SHIFT 31 > > > +#define ETH_PCTYPE_NONF_IPV4_UDP 31 > > > > Why is it clearer? I don't understand what means PCTYPE. > > It is 'packet classification type' defined in data sheet, and widely used.
Widely used? No it seems to be an i40e naming. Which datasheet are you pointing? > It is not just for RSS only, it can be used for flow director possibly. > That's why I think it would be better to rename it with PCTYPE names. At least, you should add a comment in the code to explain the meaning. Thank you -- Thomas