Re: [PATCH net-next v2 2/5] cxgb4: add common api support for configuring filters

2016-09-15 Thread David Miller
From: Rahul Lakkireddy Date: Tue, 13 Sep 2016 17:12:26 +0530 > +/* Fill up default masks for set match fields. */ > +static void fill_default_mask(struct ch_filter_specification *fs) > +{ > + unsigned int i; > + unsigned int lip = 0, lip_mask = 0; > + unsigned int fip = 0, fip_mask =

[PATCH net-next v2 2/5] cxgb4: add common api support for configuring filters

2016-09-13 Thread Rahul Lakkireddy
Enable filters for non-offload configuration and add common api support for setting and deleting filters in LE-TCAM region of the hardware. IPv4 filters occupy one slot. IPv6 filters occupy 4 slots and must be on a 4-slot boundary. IPv4 filters can not occupy a slot belonging to IPv6 and the vic