/* * Copyright (c) 2014 Nicira, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. */ #ifndef _NET_MPLS_H #define _NET_MPLS_H 1 #include <linux/if_ether.h> #include <linux/netdevice.h> #define MPLS_HLEN 4 struct mpls_shim_hdr { __be32 label_stack_entry; }; static inline bool eth_p_mpls(__be16 eth_type) { return eth_type == htons(ETH_P_MPLS_UC) || eth_type == htons(ETH_P_MPLS_MC); } static inline struct mpls_shim_hdr *mpls_hdr(const struct sk_buff *skb) { return (struct mpls_shim_hdr *)skb_network_header(skb); } #endif name='id' value='9a393b5d5988ea4eaa3e0da138321abe0dc03a68'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/drivers/usb/class/Makefile?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/class/Makefile?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/class/Makefile?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/class/Makefile?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/drivers/usb/class/Makefile'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='9a393b5d5988ea4eaa3e0da138321abe0dc03a68'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>drivers</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/class?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>class</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/class/Makefile?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68'>Makefile</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/class/Makefile?h=nds-private-remove&id=9a393b5d5988ea4eaa3e0da138321abe0dc03a68&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>