···11+What: /sys/devices/platform/at91_can/net/<iface>/mb0_id22+Date: January 201133+KernelVersion: 2.6.3844+Contact: Marc Kleine-Budde <kernel@pengutronix.de>55+Description:66+ Value representing the can_id of mailbox 0.77+88+ Default: 0x7ff (standard frame)99+1010+ Due to a chip bug (errata 50.2.6.3 & 50.3.5.3 in1111+ "AT91SAM9263 Preliminary 6249H-ATARM-27-Jul-09") the1212+ contents of mailbox 0 may be send under certain1313+ conditions (even if disabled or in rx mode).1414+1515+ The workaround in the errata suggests not to use the1616+ mailbox and load it with an unused identifier.1717+1818+ In order to use an extended can_id add the1919+ CAN_EFF_FLAG (0x80000000U) to the can_id. Example:2020+2121+ - standard id 0x7ff:2222+ echo 0x7ff > /sys/class/net/can0/mb0_id2323+2424+ - extended id 0x1fffffff:2525+ echo 0x9fffffff > /sys/class/net/can0/mb0_id
+71-12
Documentation/networking/bonding.txt
···49493.3 Configuring Bonding Manually with Ifenslave50503.3.1 Configuring Multiple Bonds Manually51513.4 Configuring Bonding Manually via Sysfs5252-3.5 Overriding Configuration for Special Cases5252+3.5 Configuration with Interfaces Support5353+3.6 Overriding Configuration for Special Cases535454554. Querying Bonding Configuration55564.1 Bonding Configuration···162161default kernel source include directory.163162164163SECOND IMPORTANT NOTE:165165- If you plan to configure bonding using sysfs, you do not need166166-to use ifenslave.164164+ If you plan to configure bonding using sysfs or using the165165+/etc/network/interfaces file, you do not need to use ifenslave.1671661681672. Bonding Driver Options169168=========================···780779781780 You can configure bonding using either your distro's network782781initialization scripts, or manually using either ifenslave or the783783-sysfs interface. Distros generally use one of two packages for the784784-network initialization scripts: initscripts or sysconfig. Recent785785-versions of these packages have support for bonding, while older782782+sysfs interface. Distros generally use one of three packages for the783783+network initialization scripts: initscripts, sysconfig or interfaces.784784+Recent versions of these packages have support for bonding, while older786785versions do not.787786788787 We will first describe the options for configuring bonding for789789-distros using versions of initscripts and sysconfig with full or790790-partial support for bonding, then provide information on enabling788788+distros using versions of initscripts, sysconfig and interfaces with full789789+or partial support for bonding, then provide information on enabling791790bonding without support from the network initialization scripts (i.e.,792791older versions of initscripts or sysconfig).793792794794- If you're unsure whether your distro uses sysconfig or795795-initscripts, or don't know if it's new enough, have no fear.793793+ If you're unsure whether your distro uses sysconfig,794794+initscripts or interfaces, or don't know if it's new enough, have no fear.796795Determining this is fairly straightforward.797796798798- First, issue the command:797797+ First, look for a file called interfaces in /etc/network directory.798798+If this file is present in your system, then your system use interfaces. See799799+Configuration with Interfaces Support.800800+801801+ Else, issue the command:799802800803$ rpm -qf /sbin/ifup801804···13321327echo +eth2 > /sys/class/net/bond1/bonding/slaves13331328echo +eth3 > /sys/class/net/bond1/bonding/slaves1334132913351335-3.5 Overriding Configuration for Special Cases13301330+3.5 Configuration with Interfaces Support13311331+-----------------------------------------13321332+13331333+ This section applies to distros which use /etc/network/interfaces file13341334+to describe network interface configuration, most notably Debian and it's13351335+derivatives.13361336+13371337+ The ifup and ifdown commands on Debian don't support bonding out of13381338+the box. The ifenslave-2.6 package should be installed to provide bonding13391339+support. Once installed, this package will provide bond-* options to be used13401340+into /etc/network/interfaces.13411341+13421342+ Note that ifenslave-2.6 package will load the bonding module and use13431343+the ifenslave command when appropriate.13441344+13451345+Example Configurations13461346+----------------------13471347+13481348+In /etc/network/interfaces, the following stanza will configure bond0, in13491349+active-backup mode, with eth0 and eth1 as slaves.13501350+13511351+auto bond013521352+iface bond0 inet dhcp13531353+ bond-slaves eth0 eth113541354+ bond-mode active-backup13551355+ bond-miimon 10013561356+ bond-primary eth0 eth113571357+13581358+If the above configuration doesn't work, you might have a system using13591359+upstart for system startup. This is most notably true for recent13601360+Ubuntu versions. The following stanza in /etc/network/interfaces will13611361+produce the same result on those systems.13621362+13631363+auto bond013641364+iface bond0 inet dhcp13651365+ bond-slaves none13661366+ bond-mode active-backup13671367+ bond-miimon 10013681368+13691369+auto eth013701370+iface eth0 inet manual13711371+ bond-master bond013721372+ bond-primary eth0 eth113731373+13741374+auto eth113751375+iface eth1 inet manual13761376+ bond-master bond013771377+ bond-primary eth0 eth113781378+13791379+For a full list of bond-* supported options in /etc/network/interfaces and some13801380+more advanced examples tailored to you particular distros, see the files in13811381+/usr/share/doc/ifenslave-2.6.13821382+13831383+3.6 Overriding Configuration for Special Cases13361384----------------------------------------------13851385+13371386When using the bonding driver, the physical port which transmits a frame is13381387typically selected by the bonding driver, and is not relevant to the user or13391388system administrator. The output port is simply selected using the policies of
-1
MAINTAINERS
···33273327F: include/linux/wimax/i2400m.h3328332833293329INTEL WIRELESS WIFI LINK (iwlwifi)33303330-M: Reinette Chatre <reinette.chatre@intel.com>33313330M: Wey-Yi Guy <wey-yi.w.guy@intel.com>33323331M: Intel Linux Wireless <ilw@linux.intel.com>33333332L: linux-wireless@vger.kernel.org
···75537553 !(data & ETH_FLAG_RXVLAN))75547554 return -EINVAL;7555755575567556+ /* TSO with VLAN tag won't work with current firmware */75577557+ if (!(data & ETH_FLAG_TXVLAN))75587558+ return -EINVAL;75597559+75567560 rc = ethtool_op_set_flags(dev, data, ETH_FLAG_RXHASH | ETH_FLAG_RXVLAN |75577561 ETH_FLAG_TXVLAN);75587562 if (rc)
+112-26
drivers/net/can/at91_can.c
···22 * at91_can.c - CAN network driver for AT91 SoC CAN controller33 *44 * (C) 2007 by Hans J. Koch <hjk@hansjkoch.de>55- * (C) 2008, 2009, 2010 by Marc Kleine-Budde <kernel@pengutronix.de>55+ * (C) 2008, 2009, 2010, 2011 by Marc Kleine-Budde <kernel@pengutronix.de>66 *77 * This software may be distributed under the terms of the GNU General88 * Public License ("GPL") version 2 as distributed in the 'COPYING'···3030#include <linux/module.h>3131#include <linux/netdevice.h>3232#include <linux/platform_device.h>3333+#include <linux/rtnetlink.h>3334#include <linux/skbuff.h>3435#include <linux/spinlock.h>3536#include <linux/string.h>···41404241#include <mach/board.h>43424444-#define AT91_NAPI_WEIGHT 124343+#define AT91_NAPI_WEIGHT 1145444645/*4746 * RX/TX Mailbox split4847 * don't dare to touch4948 */5050-#define AT91_MB_RX_NUM 124949+#define AT91_MB_RX_NUM 115150#define AT91_MB_TX_SHIFT 252515353-#define AT91_MB_RX_FIRST 05252+#define AT91_MB_RX_FIRST 15453#define AT91_MB_RX_LAST (AT91_MB_RX_FIRST + AT91_MB_RX_NUM - 1)55545655#define AT91_MB_RX_MASK(i) ((1 << (i)) - 1)5756#define AT91_MB_RX_SPLIT 85857#define AT91_MB_RX_LOW_LAST (AT91_MB_RX_SPLIT - 1)5959-#define AT91_MB_RX_LOW_MASK (AT91_MB_RX_MASK(AT91_MB_RX_SPLIT))5858+#define AT91_MB_RX_LOW_MASK (AT91_MB_RX_MASK(AT91_MB_RX_SPLIT) & \5959+ ~AT91_MB_RX_MASK(AT91_MB_RX_FIRST))60606161#define AT91_MB_TX_NUM (1 << AT91_MB_TX_SHIFT)6262#define AT91_MB_TX_FIRST (AT91_MB_RX_LAST + 1)···170168171169 struct clk *clk;172170 struct at91_can_data *pdata;171171+172172+ canid_t mb0_id;173173};174174175175static struct can_bittiming_const at91_bittiming_const = {···224220 set_mb_mode_prio(priv, mb, mode, 0);225221}226222223223+static inline u32 at91_can_id_to_reg_mid(canid_t can_id)224224+{225225+ u32 reg_mid;226226+227227+ if (can_id & CAN_EFF_FLAG)228228+ reg_mid = (can_id & CAN_EFF_MASK) | AT91_MID_MIDE;229229+ else230230+ reg_mid = (can_id & CAN_SFF_MASK) << 18;231231+232232+ return reg_mid;233233+}234234+227235/*228236 * Swtich transceiver on or off229237 */···249233{250234 struct at91_priv *priv = netdev_priv(dev);251235 unsigned int i;236236+ u32 reg_mid;252237253238 /*254254- * The first 12 mailboxes are used as a reception FIFO. The255255- * last mailbox is configured with overwrite option. The256256- * overwrite flag indicates a FIFO overflow.239239+ * Due to a chip bug (errata 50.2.6.3 & 50.3.5.3) the first240240+ * mailbox is disabled. The next 11 mailboxes are used as a241241+ * reception FIFO. The last mailbox is configured with242242+ * overwrite option. The overwrite flag indicates a FIFO243243+ * overflow.257244 */245245+ reg_mid = at91_can_id_to_reg_mid(priv->mb0_id);246246+ for (i = 0; i < AT91_MB_RX_FIRST; i++) {247247+ set_mb_mode(priv, i, AT91_MB_MODE_DISABLED);248248+ at91_write(priv, AT91_MID(i), reg_mid);249249+ at91_write(priv, AT91_MCR(i), 0x0); /* clear dlc */250250+ }251251+258252 for (i = AT91_MB_RX_FIRST; i < AT91_MB_RX_LAST; i++)259253 set_mb_mode(priv, i, AT91_MB_MODE_RX);260254 set_mb_mode(priv, AT91_MB_RX_LAST, AT91_MB_MODE_RX_OVRWR);···280254 set_mb_mode_prio(priv, i, AT91_MB_MODE_TX, 0);281255282256 /* Reset tx and rx helper pointers */283283- priv->tx_next = priv->tx_echo = priv->rx_next = 0;257257+ priv->tx_next = priv->tx_echo = 0;258258+ priv->rx_next = AT91_MB_RX_FIRST;284259}285260286261static int at91_set_bittiming(struct net_device *dev)···399372 netdev_err(dev, "BUG! TX buffer full when queue awake!\n");400373 return NETDEV_TX_BUSY;401374 }402402-403403- if (cf->can_id & CAN_EFF_FLAG)404404- reg_mid = (cf->can_id & CAN_EFF_MASK) | AT91_MID_MIDE;405405- else406406- reg_mid = (cf->can_id & CAN_SFF_MASK) << 18;407407-375375+ reg_mid = at91_can_id_to_reg_mid(cf->can_id);408376 reg_mcr = ((cf->can_id & CAN_RTR_FLAG) ? AT91_MCR_MRTR : 0) |409377 (cf->can_dlc << 16) | AT91_MCR_MTCR;410378···561539 *562540 * Theory of Operation:563541 *564564- * 12 of the 16 mailboxes on the chip are reserved for RX. we split565565- * them into 2 groups. The lower group holds 8 and upper 4 mailboxes.542542+ * 11 of the 16 mailboxes on the chip are reserved for RX. we split543543+ * them into 2 groups. The lower group holds 7 and upper 4 mailboxes.566544 *567545 * Like it or not, but the chip always saves a received CAN message568546 * into the first free mailbox it finds (starting with the569547 * lowest). This makes it very difficult to read the messages in the570548 * right order from the chip. This is how we work around that problem:571549 *572572- * The first message goes into mb nr. 0 and issues an interrupt. All550550+ * The first message goes into mb nr. 1 and issues an interrupt. All573551 * rx ints are disabled in the interrupt handler and a napi poll is574552 * scheduled. We read the mailbox, but do _not_ reenable the mb (to575553 * receive another message).576554 *577555 * lower mbxs upper578578- * ______^______ __^__579579- * / \ / \556556+ * ____^______ __^__557557+ * / \ / \580558 * +-+-+-+-+-+-+-+-++-+-+-+-+581581- * |x|x|x|x|x|x|x|x|| | | | |559559+ * | |x|x|x|x|x|x|x|| | | | |582560 * +-+-+-+-+-+-+-+-++-+-+-+-+583561 * 0 0 0 0 0 0 0 0 0 0 1 1 \ mail584562 * 0 1 2 3 4 5 6 7 8 9 0 1 / box563563+ * ^564564+ * |565565+ * \566566+ * unused, due to chip bug585567 *586568 * The variable priv->rx_next points to the next mailbox to read a587569 * message from. As long we're in the lower mailboxes we just read the···616590 "order of incoming frames cannot be guaranteed\n");617591618592 again:619619- for (mb = find_next_bit(addr, AT91_MB_RX_NUM, priv->rx_next);620620- mb < AT91_MB_RX_NUM && quota > 0;593593+ for (mb = find_next_bit(addr, AT91_MB_RX_LAST + 1, priv->rx_next);594594+ mb < AT91_MB_RX_LAST + 1 && quota > 0;621595 reg_sr = at91_read(priv, AT91_SR),622622- mb = find_next_bit(addr, AT91_MB_RX_NUM, ++priv->rx_next)) {596596+ mb = find_next_bit(addr, AT91_MB_RX_LAST + 1, ++priv->rx_next)) {623597 at91_read_msg(dev, mb);624598625599 /* reactivate mailboxes */···636610637611 /* upper group completed, look again in lower */638612 if (priv->rx_next > AT91_MB_RX_LOW_LAST &&639639- quota > 0 && mb >= AT91_MB_RX_NUM) {640640- priv->rx_next = 0;613613+ quota > 0 && mb > AT91_MB_RX_LAST) {614614+ priv->rx_next = AT91_MB_RX_FIRST;641615 goto again;642616 }643617···10631037 .ndo_start_xmit = at91_start_xmit,10641038};1065103910401040+static ssize_t at91_sysfs_show_mb0_id(struct device *dev,10411041+ struct device_attribute *attr, char *buf)10421042+{10431043+ struct at91_priv *priv = netdev_priv(to_net_dev(dev));10441044+10451045+ if (priv->mb0_id & CAN_EFF_FLAG)10461046+ return snprintf(buf, PAGE_SIZE, "0x%08x\n", priv->mb0_id);10471047+ else10481048+ return snprintf(buf, PAGE_SIZE, "0x%03x\n", priv->mb0_id);10491049+}10501050+10511051+static ssize_t at91_sysfs_set_mb0_id(struct device *dev,10521052+ struct device_attribute *attr, const char *buf, size_t count)10531053+{10541054+ struct net_device *ndev = to_net_dev(dev);10551055+ struct at91_priv *priv = netdev_priv(ndev);10561056+ unsigned long can_id;10571057+ ssize_t ret;10581058+ int err;10591059+10601060+ rtnl_lock();10611061+10621062+ if (ndev->flags & IFF_UP) {10631063+ ret = -EBUSY;10641064+ goto out;10651065+ }10661066+10671067+ err = strict_strtoul(buf, 0, &can_id);10681068+ if (err) {10691069+ ret = err;10701070+ goto out;10711071+ }10721072+10731073+ if (can_id & CAN_EFF_FLAG)10741074+ can_id &= CAN_EFF_MASK | CAN_EFF_FLAG;10751075+ else10761076+ can_id &= CAN_SFF_MASK;10771077+10781078+ priv->mb0_id = can_id;10791079+ ret = count;10801080+10811081+ out:10821082+ rtnl_unlock();10831083+ return ret;10841084+}10851085+10861086+static DEVICE_ATTR(mb0_id, S_IWUGO | S_IRUGO,10871087+ at91_sysfs_show_mb0_id, at91_sysfs_set_mb0_id);10881088+10891089+static struct attribute *at91_sysfs_attrs[] = {10901090+ &dev_attr_mb0_id.attr,10911091+ NULL,10921092+};10931093+10941094+static struct attribute_group at91_sysfs_attr_group = {10951095+ .attrs = at91_sysfs_attrs,10961096+};10971097+10661098static int __devinit at91_can_probe(struct platform_device *pdev)10671099{10681100 struct net_device *dev;···11661082 dev->netdev_ops = &at91_netdev_ops;11671083 dev->irq = irq;11681084 dev->flags |= IFF_ECHO;10851085+ dev->sysfs_groups[0] = &at91_sysfs_attr_group;1169108611701087 priv = netdev_priv(dev);11711088 priv->can.clock.freq = clk_get_rate(clk);···11781093 priv->dev = dev;11791094 priv->clk = clk;11801095 priv->pdata = pdev->dev.platform_data;10961096+ priv->mb0_id = 0x7ff;1181109711821098 netif_napi_add(dev, &priv->napi, at91_poll, AT91_NAPI_WEIGHT);11831099
···1313 *1414 * INTRODUCTION1515 *1616- * The textsearch infrastructure provides text searching facitilies for1616+ * The textsearch infrastructure provides text searching facilities for1717 * both linear and non-linear data. Individual search algorithms are1818 * implemented in modules and chosen by the user.1919 *···4343 * to the algorithm to store persistent variables.4444 * (4) Core eventually resets the search offset and forwards the find()4545 * request to the algorithm.4646- * (5) Algorithm calls get_next_block() provided by the user continously4646+ * (5) Algorithm calls get_next_block() provided by the user continuously4747 * to fetch the data to be searched in block by block.4848 * (6) Algorithm invokes finish() after the last call to get_next_block4949 * to clean up any leftovers from get_next_block. (Optional)···5858 * the pattern to look for and flags. As a flag, you can set TS_IGNORECASE5959 * to perform case insensitive matching. But it might slow down6060 * performance of algorithm, so you should use it at own your risk.6161- * The returned configuration may then be used for an arbitary6161+ * The returned configuration may then be used for an arbitrary6262 * amount of times and even in parallel as long as a separate struct6363 * ts_state variable is provided to every instance.6464 *6565 * The actual search is performed by either calling textsearch_find_-6666 * continuous() for linear data or by providing an own get_next_block()6767 * implementation and calling textsearch_find(). Both functions return6868- * the position of the first occurrence of the patern or UINT_MAX if6969- * no match was found. Subsequent occurences can be found by calling6868+ * the position of the first occurrence of the pattern or UINT_MAX if6969+ * no match was found. Subsequent occurrences can be found by calling7070 * textsearch_next() regardless of the linearity of the data.7171 *7272 * Once you're done using a configuration it must be given back via
+9-7
net/bluetooth/hci_conn.c
···379379 hci_conn_hold(acl);380380381381 if (acl->state == BT_OPEN || acl->state == BT_CLOSED) {382382- acl->sec_level = sec_level;382382+ acl->sec_level = BT_SECURITY_LOW;383383+ acl->pending_sec_level = sec_level;383384 acl->auth_type = auth_type;384385 hci_acl_connect(acl);385385- } else {386386- if (acl->sec_level < sec_level)387387- acl->sec_level = sec_level;388388- if (acl->auth_type < auth_type)389389- acl->auth_type = auth_type;390386 }391387392388 if (type == ACL_LINK)···438442{439443 BT_DBG("conn %p", conn);440444445445+ if (conn->pending_sec_level > sec_level)446446+ sec_level = conn->pending_sec_level;447447+441448 if (sec_level > conn->sec_level)442442- conn->sec_level = sec_level;449449+ conn->pending_sec_level = sec_level;443450 else if (conn->link_mode & HCI_LM_AUTH)444451 return 1;452452+453453+ /* Make sure we preserve an existing MITM requirement*/454454+ auth_type |= (conn->auth_type & 0x01);445455446456 conn->auth_type = auth_type;447457
···26612661 struct net *net = dev_net(dev);26622662 struct inet6_dev *idev;26632663 struct inet6_ifaddr *ifa;26642664- LIST_HEAD(keep_list);26652665- int state;26642664+ int state, i;2666266526672666 ASSERT_RTNL();2668266726692669- /* Flush routes if device is being removed or it is not loopback */26702670- if (how || !(dev->flags & IFF_LOOPBACK))26712671- rt6_ifdown(net, dev);26682668+ rt6_ifdown(net, dev);26692669+ neigh_ifdown(&nd_tbl, dev);2672267026732671 idev = __in6_dev_get(dev);26742672 if (idev == NULL)···26852687 /* Step 1.5: remove snmp6 entry */26862688 snmp6_unregister_dev(idev);2687268926902690+ }26912691+26922692+ /* Step 2: clear hash table */26932693+ for (i = 0; i < IN6_ADDR_HSIZE; i++) {26942694+ struct hlist_head *h = &inet6_addr_lst[i];26952695+ struct hlist_node *n;26962696+26972697+ spin_lock_bh(&addrconf_hash_lock);26982698+ restart:26992699+ hlist_for_each_entry_rcu(ifa, n, h, addr_lst) {27002700+ if (ifa->idev == idev) {27012701+ hlist_del_init_rcu(&ifa->addr_lst);27022702+ addrconf_del_timer(ifa);27032703+ goto restart;27042704+ }27052705+ }27062706+ spin_unlock_bh(&addrconf_hash_lock);26882707 }2689270826902709 write_lock_bh(&idev->lock);···27372722 struct inet6_ifaddr, if_list);27382723 addrconf_del_timer(ifa);2739272427402740- /* If just doing link down, and address is permanent27412741- and not link-local, then retain it. */27422742- if (!how &&27432743- (ifa->flags&IFA_F_PERMANENT) &&27442744- !(ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL)) {27452745- list_move_tail(&ifa->if_list, &keep_list);27252725+ list_del(&ifa->if_list);2746272627472747- /* If not doing DAD on this address, just keep it. */27482748- if ((dev->flags&(IFF_NOARP|IFF_LOOPBACK)) ||27492749- idev->cnf.accept_dad <= 0 ||27502750- (ifa->flags & IFA_F_NODAD))27512751- continue;27272727+ write_unlock_bh(&idev->lock);2752272827532753- /* If it was tentative already, no need to notify */27542754- if (ifa->flags & IFA_F_TENTATIVE)27552755- continue;27292729+ spin_lock_bh(&ifa->state_lock);27302730+ state = ifa->state;27312731+ ifa->state = INET6_IFADDR_STATE_DEAD;27322732+ spin_unlock_bh(&ifa->state_lock);2756273327572757- /* Flag it for later restoration when link comes up */27582758- ifa->flags |= IFA_F_TENTATIVE;27592759- ifa->state = INET6_IFADDR_STATE_DAD;27602760- } else {27612761- list_del(&ifa->if_list);27622762-27632763- /* clear hash table */27642764- spin_lock_bh(&addrconf_hash_lock);27652765- hlist_del_init_rcu(&ifa->addr_lst);27662766- spin_unlock_bh(&addrconf_hash_lock);27672767-27682768- write_unlock_bh(&idev->lock);27692769- spin_lock_bh(&ifa->state_lock);27702770- state = ifa->state;27712771- ifa->state = INET6_IFADDR_STATE_DEAD;27722772- spin_unlock_bh(&ifa->state_lock);27732773-27742774- if (state != INET6_IFADDR_STATE_DEAD) {27752775- __ipv6_ifa_notify(RTM_DELADDR, ifa);27762776- atomic_notifier_call_chain(&inet6addr_chain,27772777- NETDEV_DOWN, ifa);27782778- }27792779-27802780- in6_ifa_put(ifa);27812781- write_lock_bh(&idev->lock);27342734+ if (state != INET6_IFADDR_STATE_DEAD) {27352735+ __ipv6_ifa_notify(RTM_DELADDR, ifa);27362736+ atomic_notifier_call_chain(&inet6addr_chain, NETDEV_DOWN, ifa);27822737 }27832783- }27382738+ in6_ifa_put(ifa);2784273927852785- list_splice(&keep_list, &idev->addr_list);27402740+ write_lock_bh(&idev->lock);27412741+ }2786274227872743 write_unlock_bh(&idev->lock);27882744···41424156 addrconf_leave_solict(ifp->idev, &ifp->addr);41434157 dst_hold(&ifp->rt->dst);4144415841454145- if (ifp->state == INET6_IFADDR_STATE_DEAD &&41464146- ip6_del_rt(ifp->rt))41594159+ if (ip6_del_rt(ifp->rt))41474160 dst_free(&ifp->rt->dst);41484161 break;41494162 }
···9898 if (!xdst->u.rt6.rt6i_idev)9999 return -ENODEV;100100101101+ xdst->u.rt6.rt6i_peer = rt->rt6i_peer;102102+ if (rt->rt6i_peer)103103+ atomic_inc(&rt->rt6i_peer->refcnt);104104+101105 /* Sheit... I remember I did this right. Apparently,102106 * it was magically lost, so this code needs audit */103107 xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST |···220216221217 if (likely(xdst->u.rt6.rt6i_idev))222218 in6_dev_put(xdst->u.rt6.rt6i_idev);219219+ if (likely(xdst->u.rt6.rt6i_peer))220220+ inet_putpeer(xdst->u.rt6.rt6i_peer);223221 xfrm_dst_destroy(xdst);224222}225223