> +     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(struct iphdr) - sizeof(struct tcphdr);
> +     /* configure Traffic Class for rate-limiting */
> +     ret = t4_sched_params(adap, SCHED_CLASS_TYPE_PACKET,
> +                           SCHED_CLASS_LEVEL_CL_RL,
> +                           SCHED_CLASS_MODE_CLASS,
> +                           SCHED_CLASS_RATEUNIT_BITS,
> +                           SCHED_CLASS_RATEMODE_ABS,
> +                           pi->port_id, class_id, 0,
> +                           max_tx_rate * 1000, 0, pktsize);

Does it mean you're achieving throughput limitation by
limiting the PP/s?

Reply via email to