]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/dsa/dsa.c
dsa: add support for Trailer tagging format
[linux-2.6-omap-h63xx.git] / net / dsa / dsa.c
index f8c549281c306cdf29ab7a182cfba7445fe1c6ad..33e99462023abccab58c8807d1bb7f57962b7ebc 100644 (file)
@@ -217,6 +217,13 @@ bool dsa_uses_dsa_tags(void *dsa_ptr)
        return !!(ds->tag_protocol == htons(ETH_P_DSA));
 }
 
+bool dsa_uses_trailer_tags(void *dsa_ptr)
+{
+       struct dsa_switch *ds = dsa_ptr;
+
+       return !!(ds->tag_protocol == htons(ETH_P_TRAILER));
+}
+
 
 /* link polling *************************************************************/
 static void dsa_link_poll_work(struct work_struct *ugly)