[qca-nss-ecm] Updated how the interface hierarchy is constructed

- Updated to check for HyFi egress port in the linux / HyFi bridge
- Added an extra check to determine if the egress device provided by NSS
  needs to be updated
- Added some extra helper functions to the DB
- Updated the HyFi classifier to determine the egress device
- Fixed reading commands from the file to userspace
- Changed the declerate call to a regenerate
- Regenerate connections if the egress interface does not match that
  requested from HyFii
- Update the hierarchy checks in the Hy-Fi classifer.
  Should make sure either the level above the interface is the bridge,
  or that this interface is attached to the HyFi bridge before checking
  the interface (this allows us to operate in environments where the
  port attached to the bridge is not the lowest level in the hierarchy -
  for example with PLC or VLANs)
- Mark the owner of the debugfs file to be this module (so ECM will not
  be allowed to terminate as long as ecmManager is holding the FD).  So
  must terminate hyd before ECM (although they can start in either
  order).
- Updated function calls from NSS / SFE.  Note the skb must be passed in
  NULL here since they are checking the source, not the destination
- Changed to use generic_file_llseek (this is apparently preferred over
  default_llseek)
- Disable the Hy-Fi classifier by default
- Don't mark the Hy-Fi classifier as relevant to a connection unless the
  Hy-Fi bridge is attached

Change-Id: Idafd2a4cf91fae3f06919a57d67381efbdfc0d58
Signed-off-by: Murat Sezgin <msezgin@codeaurora.org>
diff --git a/ecm_db.h b/ecm_db.h
index 900d5d6..1261ff2 100644
--- a/ecm_db.h
+++ b/ecm_db.h
@@ -1,6 +1,6 @@
 /*
  **************************************************************************
- * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2016, The Linux Foundation. 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 copyright notice and this permission notice appear in all copies.
@@ -69,6 +69,7 @@
 int32_t ecm_db_iface_mtu_reset(struct ecm_db_iface_instance *ii, int32_t mtu);
 int32_t ecm_db_iface_ae_interface_identifier_get(struct ecm_db_iface_instance *ii);
 int32_t ecm_db_iface_interface_identifier_get(struct ecm_db_iface_instance *ii);
+void ecm_db_iface_interface_name_get(struct ecm_db_iface_instance *ii, char *name_buffer);
 void ecm_db_iface_identifier_hash_table_entry_check_and_update(struct ecm_db_iface_instance *ii, int32_t new_interface_identifier);
 
 struct ecm_front_end_connection_instance *ecm_db_connection_front_end_get_and_ref(struct ecm_db_connection_instance *ci);