[PATCH net-next 4/5] net: bridge: use common function to compute the features