| lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
|
Open Source and information security mailing list archives
| ||
|
Message-ID: <1292855120.2800.45.camel@edumazet-laptop> Date: Mon, 20 Dec 2010 15:25:20 +0100 From: Eric Dumazet <eric.dumazet@...il.com> To: Changli Gao <xiaosuo@...il.com>, David Miller <davem@...emloft.net> Cc: Jarek Poplawski <jarkao2@...il.com>, Paweł Staszewski <pstaszewski@...are.pl>, Linux Network Development list <netdev@...r.kernel.org> Subject: [PATCH net-next-2.6] ifb: add performance flags to dev->features Le lundi 20 décembre 2010 à 22:05 +0800, Changli Gao a écrit : > 2010/12/20 Jarek Poplawski <jarkao2@...il.com>: > > > > IMHO it should, (probably even more, like loopback) but we should > > consider mirred can xmit to other than ifb too. > > > > I also think so. And when making ifb a multiqueue NIC, I tried to add > these dev features to ifb. :) > This has litle to do with your multiqueue work, its more an effect of GRO being more and more deployed. I dont see dev->features being changed in one of your previous patches. I did dummy case in commit 6d81f41c58c6 [PATCH net-next-2.6] ifb: add performance flags to dev->features IFB can use the full set of features flags (NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_TSO | NETIF_F_NO_CSUM | NETIF_F_HIGHDMA) to avoid unecessary split of some packets (GRO for example) Signed-off-by: Eric Dumazet <eric.dumazet@...il.com> Cc: Changli Gao <xiaosuo@...il.com> Cc: Jarek Poplawski <jarkao2@...il.com> Cc: Pawel Staszewski <pstaszewski@...are.pl> --- drivers/net/ifb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index 124dac4..c761551 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c @@ -136,6 +136,9 @@ static void ifb_setup(struct net_device *dev) ether_setup(dev); dev->tx_queue_len = TX_Q_LIMIT; + dev->features |= NETIF_F_NO_CSUM | NETIF_F_SG | + NETIF_F_FRAGLIST | NETIF_F_HIGHDMA | + NETIF_F_TSO; dev->flags |= IFF_NOARP; dev->flags &= ~IFF_MULTICAST; dev->priv_flags &= ~IFF_XMIT_DST_RELEASE; -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists