geneve.c (46fa062ad63146dd138ec0f017e71224471e8ea5) | geneve.c (7f9562a1f405306eacb97f95d78cb996e33f27f5) |
---|---|
1/* 2 * GENEVE: Generic Network Virtualization Encapsulation 3 * 4 * Copyright (c) 2015 Red Hat, Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 613 unchanged lines hidden (view full) --- 622 int err; 623 624 if (geneve->collect_md) { 625 info = skb_tunnel_info(skb); 626 if (unlikely(info && !(info->mode & IP_TUNNEL_INFO_TX))) { 627 netdev_dbg(dev, "no tunnel metadata\n"); 628 goto tx_error; 629 } | 1/* 2 * GENEVE: Generic Network Virtualization Encapsulation 3 * 4 * Copyright (c) 2015 Red Hat, Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 613 unchanged lines hidden (view full) --- 622 int err; 623 624 if (geneve->collect_md) { 625 info = skb_tunnel_info(skb); 626 if (unlikely(info && !(info->mode & IP_TUNNEL_INFO_TX))) { 627 netdev_dbg(dev, "no tunnel metadata\n"); 628 goto tx_error; 629 } |
630 if (info && ip_tunnel_info_af(info) != AF_INET) 631 goto tx_error; |
|
630 } 631 632 rt = geneve_get_rt(skb, dev, &fl4, info); 633 if (IS_ERR(rt)) { 634 netdev_dbg(dev, "no route to %pI4\n", &fl4.daddr); 635 dev->stats.tx_carrier_errors++; 636 goto tx_error; 637 } --- 411 unchanged lines hidden --- | 632 } 633 634 rt = geneve_get_rt(skb, dev, &fl4, info); 635 if (IS_ERR(rt)) { 636 netdev_dbg(dev, "no route to %pI4\n", &fl4.daddr); 637 dev->stats.tx_carrier_errors++; 638 goto tx_error; 639 } --- 411 unchanged lines hidden --- |