net/sfc/base: use simpler code to check hash algorithm type