From: Andy Lee Subject: RE: [PATCH] MAC Matching vif-route & tip Date: Wed, 07 Sep 2005 11:52:22 -0700 Message-ID: <6.1.2.0.2.20050907115149.05c38eb0@secure.hitx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 10:44 AM 9/7/2005, Ian wrote: > > This patch will setup iptable rules for vif's that does MAC > > matching, as PHYSDEV matching only works for bridged devices. > >Is that definitely the case? I don't see why physdev shouldn't work with >routed setups. Yes. I first noticed the the byte counters of Physdev iptable rules being stuck at 0. They don't catch routed packets. Then I read: CONFIG_IP_NF_MATCH_PHYSDEV: "Physdev packet matching matches against the physical bridge ports the IP packet arrived on or will leave by." Using menuconfig, as I disable "802.1d Ethernet Bridging" from Networking, Physdev disappears from the netfilter menu too. > > On a separate but still networking issue, I noticed that my > > XenU's outbound traffic is sporadic (between 800KB/sec and > > 2MB/sec). The problem is the default qdisc being inadequate. > > So I fix it with: > > > > XenU# tc qdisc add dev eth0 root tbf rate 50mbit latency 20ms > > burst 50k > >How much more buffering does this add? As I understand it, the buffer must complement the network speed. Default i386 kernel uses 100 HZ, or 10ms time slices. Thus 50mbits/sec fills 50KB in 10ms.