search for: eth_zlen

Displaying 4 results from an estimated 4 matches for "eth_zlen".

Did you mean: eth_alen
2023 Jan 14
2
[PATCH net-next 1/2] virtio_net: Fix short frame length check
...ruct virtnet_info *vi, > > struct receive_queue *rq, > > > struct sk_buff *skb; > > > struct virtio_net_hdr_mrg_rxbuf *hdr; > > > > > > - if (unlikely(len < vi->hdr_len + ETH_HLEN)) { > > > + if (unlikely(len < vi->hdr_len + ETH_ZLEN)) { > > > pr_debug("%s: short packet %i\n", dev->name, len); > > > dev->stats.rx_length_errors++; > > > if (vi->mergeable_rx_bufs) { > > > > I'm not sure I agree with this change as packets are only 60...
2023 Jan 13
2
[PATCH net-next 2/2] virtio_net: Reuse buffer free function
...-git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index d45e140b6852..c1faaf11fbcd 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1251,13 +1251,7 @@ static void receive_buf(struct virtnet_info *vi, struct receive_queue *rq, if (unlikely(len < vi->hdr_len + ETH_ZLEN)) { pr_debug("%s: short packet %i\n", dev->name, len); dev->stats.rx_length_errors++; - if (vi->mergeable_rx_bufs) { - put_page(virt_to_head_page(buf)); - } else if (vi->big_packets) { - give_pages(rq, buf); - } else { - put_page(virt_to_head_page(buf)); - } +...
2023 Jan 13
3
[PATCH net-next 0/2] Small packet processing handling changes
Hi, These two changes improve the small packet handling. Patch summary: patch-1 fixes the length check by considering Ethernet 60B frame size patch-2 avoids code duplication by reuses existing buffer free helper Please review. Parav Pandit (2): virtio_net: Fix short frame length check virtio_net: Reuse buffer free function drivers/net/virtio_net.c | 10 ++-------- 1 file changed, 2
2007 Apr 18
7
[Bridge] (no subject)
Dear Sir, I was trying to install bridge as we are installing scps gateway in our testbed.This requires us to install the bridge. Our Linux version is 2.4.18 ~3 and we are using redhat 7.2 Please let me know which is the bridge I should install and how to configure it. Before configuring the bridge what I should check in my configuration. Thanks for your time, Sincerely Rama ===== I hear