> From: Stephen Hemminger [mailto:step...@networkplumber.org]
> Sent: Thursday, 1 August 2024 01.46
>
> On Wed, 31 Jul 2024 22:58:16 +
> Morten Brørup wrote:
>
> > +
> > +static inline void
> > +virtio_update_packet_stats(struct virtnet_stats *const stats, const
> struct rte_mbuf *const mbuf
Optimized the performance of updating the virtio statistics counters by
reducing the number of branches and inlining the function.
Ordered the packet size comparisons according to the probability with
typical internet traffic mix.
Signed-off-by: Morten Brørup
---
v4:
* Consider multicast/broadca
2 matches
Mail list logo