[qca-nss-sfe] PPPoE offload fixes

1. Fix protocol and endianess
2. Fix copyright year style
3. Pass non-NULL l2_info and check parse flags before using l2_info

Change-Id: I7801834b224a39a04450fdacbbb9cb9620b4221c
Signed-off-by: Guduri Prathyusha <quic_gprathyu@quicinc.com>
diff --git a/sfe.h b/sfe.h
index 01636f2..c6f8421 100644
--- a/sfe.h
+++ b/sfe.h
@@ -3,7 +3,7 @@
  *	Shortcut forwarding engine.
  *
  * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
- * Copyright (c) 2021,2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -230,7 +230,7 @@
  * sfe_l2_parse_flag_set()
  *	Set L2 parse flag
  */
-static inline void sfe_l2_parse_flag_set(struct sfe_l2_info *l2_info, u32 flag)
+static inline void sfe_l2_parse_flag_set(struct sfe_l2_info *l2_info, u16 flag)
 {
 	l2_info->parse_flags |= flag;
 }
@@ -239,7 +239,7 @@
  * sfe_l2_parse_flag_get()
  *	Get L2 parse flag
  */
-static inline u32 sfe_l2_parse_flag_get(struct sfe_l2_info *l2_info)
+static inline u16 sfe_l2_parse_flag_get(struct sfe_l2_info *l2_info)
 {
 	return l2_info->parse_flags;
 }
@@ -248,9 +248,9 @@
  * sfe_l2_parse_flag_check()
  *	Check L2 parse flag
  */
-static inline bool sfe_l2_parse_flag_check(struct sfe_l2_info *l2_info, u32 flag)
+static inline bool sfe_l2_parse_flag_check(struct sfe_l2_info *l2_info, u16 flag)
 {
-	return l2_info->parse_flags & flag;
+	return !!(l2_info->parse_flags & flag);
 }
 
 /*