RE: [PATCHv2 7/7] IPVTAP: IP-VLAN based tap driver
From: Grandhi, Sainath
Date: Thu Jan 19 2017 - 18:36:42 EST
> -----Original Message-----
> From: David Miller [mailto:davem@xxxxxxxxxxxxx]
> Sent: Wednesday, January 18, 2017 1:29 PM
> To: Grandhi, Sainath <sainath.grandhi@xxxxxxxxx>
> Cc: netdev@xxxxxxxxxxxxxxx; mahesh@xxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCHv2 7/7] IPVTAP: IP-VLAN based tap driver
>
> From: Sainath Grandhi <sainath.grandhi@xxxxxxxxx>
> Date: Tue, 17 Jan 2017 16:03:06 -0800
>
> > +static void ipvtap_count_tx_dropped(struct tap_dev *tap) {
> > + struct ipvl_dev *vlan = (struct ipvl_dev *)container_of(tap, struct
> > +ipvtap_dev, tap);
> ...
> > +static void ipvtap_count_rx_dropped(struct tap_dev *tap) {
> > + struct ipvl_dev *vlan = (struct ipvl_dev *)container_of(tap, struct
> > +ipvtap_dev, tap);
> ...
> > +static void ipvtap_update_features(struct tap_dev *tap,
> > + netdev_features_t features)
> > +{
> > + struct ipvl_dev *vlan = (struct ipvl_dev *)container_of(tap, struct
> > +ipvtap_dev, tap);
>
> More unnecessary casts, please remove.
Will take care of it in next revision. Thanks.