netdev: Use shash and smap functions instead of inlined substitutes.