Make set_ethertype() static as it is not used outside of packet.c Signed-off-by: Simon Horman <ho...@verge.net.au> --- lib/packets.c | 2 +- lib/packets.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/lib/packets.c b/lib/packets.c index 43134dc..7238f42 100644 --- a/lib/packets.c +++ b/lib/packets.c @@ -218,7 +218,7 @@ eth_pop_vlan(struct ofpbuf *packet) } /* Set ethertype of the packet. */ -void +static void set_ethertype(struct ofpbuf *packet, ovs_be16 eth_type) { struct eth_header *eh = packet->data; diff --git a/lib/packets.h b/lib/packets.h index ce089bc..1855a1c 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -154,8 +154,6 @@ void compose_rarp(struct ofpbuf *, const uint8_t eth_src[ETH_ADDR_LEN]); void eth_push_vlan(struct ofpbuf *, ovs_be16 tpid, ovs_be16 tci); void eth_pop_vlan(struct ofpbuf *); -void set_ethertype(struct ofpbuf *packet, ovs_be16 eth_type); - const char *eth_from_hex(const char *hex, struct ofpbuf **packetp); void eth_format_masked(const uint8_t eth[ETH_ADDR_LEN], const uint8_t mask[ETH_ADDR_LEN], struct ds *s); -- 1.8.5.2 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev