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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 22 Jul 2007 14:35:44 +0530 From: Krishna Kumar <krkumar2@...ibm.com> To: davem@...emloft.net, rdreier@...co.com Cc: johnpol@....mipt.ru, Robert.Olsson@...a.slu.se, rick.jones2@...com, herbert@...dor.apana.org.au, gaagaan@...il.com, kumarkr@...ux.ibm.com, peter.p.waskiewicz.jr@...el.com, mcarlson@...adcom.com, kaber@...sh.net, jagana@...ibm.com, general@...ts.openfabrics.org, mchan@...adcom.com, tgraf@...g.ch, jeff@...zik.org, sri@...ibm.com, hadi@...erus.ca, netdev@...r.kernel.org, Krishna Kumar <krkumar2@...ibm.com>, xma@...ibm.com Subject: [PATCH 05/12 -Rev2] sysfs changes. diff -ruNp org/net/core/net-sysfs.c rev2/net/core/net-sysfs.c --- org/net/core/net-sysfs.c 2007-07-20 07:49:28.000000000 +0530 +++ rev2/net/core/net-sysfs.c 2007-07-21 22:56:32.000000000 +0530 @@ -230,6 +230,21 @@ static ssize_t store_weight(struct devic return netdev_store(dev, attr, buf, len, change_weight); } +static ssize_t show_tx_batch_skb(struct device *dev, + struct device_attribute *attr, char *buf) +{ + struct net_device *netdev = to_net_dev(dev); + + return sprintf(buf, fmt_dec, BATCHING_ON(netdev)); +} + +static ssize_t store_tx_batch_skb(struct device *dev, + struct device_attribute *attr, + const char *buf, size_t len) +{ + return netdev_store(dev, attr, buf, len, dev_change_tx_batching); +} + static struct device_attribute net_class_attributes[] = { __ATTR(addr_len, S_IRUGO, show_addr_len, NULL), __ATTR(iflink, S_IRUGO, show_iflink, NULL), @@ -246,6 +261,8 @@ static struct device_attribute net_class __ATTR(flags, S_IRUGO | S_IWUSR, show_flags, store_flags), __ATTR(tx_queue_len, S_IRUGO | S_IWUSR, show_tx_queue_len, store_tx_queue_len), + __ATTR(tx_batch_skbs, S_IRUGO | S_IWUSR, show_tx_batch_skb, + store_tx_batch_skb), __ATTR(weight, S_IRUGO | S_IWUSR, show_weight, store_weight), {} }; - 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