vlan: Set hard_header_len according to available acceleration