In message [ref],"David S. Miller" writes:
2) Add a type cookie or similar to the generic netdev, only devices
which need to identify themselves in these generic kind of cases
add identifier values there, so currently that would be MPOA and
QETH, then the code goes:
if (dev->type_cookie == NETDEV_TYPE_MPOA)
return NOTIFY_DONE;
while just as ugly it would probably suffice to check dev->start_xmit()
to make sure its the routine you know it should be. since the number
of drivers that need to do this seems small this might be simpler.