]> Pileus Git - ~andy/linux/blobdiff - net/core/link_watch.c
tunnel: drop packet if ECN present with not-ECT
[~andy/linux] / net / core / link_watch.c
index c3519c6d1b169a5c895efd781c7958218d7f8dc6..a01922219a23da6cbd23f5506b2b5ce329b2f617 100644 (file)
@@ -76,6 +76,14 @@ static void rfc2863_policy(struct net_device *dev)
 }
 
 
+void linkwatch_init_dev(struct net_device *dev)
+{
+       /* Handle pre-registration link state changes */
+       if (!netif_carrier_ok(dev) || netif_dormant(dev))
+               rfc2863_policy(dev);
+}
+
+
 static bool linkwatch_urgent_event(struct net_device *dev)
 {
        if (!netif_running(dev))