From: Ganesh Goudar
Date: Mon, 5 Jun 2017 18:34:20 +0530
> Implement ndo_set_vf_rate() for mgmt interface to support rate-limiting
> of VF traffic using 'ip' command.
>
> Based on the original work of Kumar Sanghvi
>
> Signed-off-by: Ganesh Goudar
Applied to net-next, thanks Ganesh.
On Monday, June 06/05/17, 2017 at 14:03:14 +, Mintz, Yuval wrote:
> > + pktsize = be16_to_cpu(port_rpl.u.info.mtu);
> > + /* subtract ethhdr size and 4 bytes crc since, f/w appends it */
> > + pktsize = pktsize - sizeof(struct ethhdr) - 4;
> > + /* subtract ipv4 hdr size, tcp hdr size t
> + pktsize = be16_to_cpu(port_rpl.u.info.mtu);
> + /* subtract ethhdr size and 4 bytes crc since, f/w appends it */
> + pktsize = pktsize - sizeof(struct ethhdr) - 4;
> + /* subtract ipv4 hdr size, tcp hdr size to get typical IPv4 MSS size */
> + pktsize = pktsize - sizeof(stru