• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/package/qca-nss-drv/src/

Lines Matching refs:ncm

59 static void nss_gre_redir_msg_handler(struct nss_ctx_instance *nss_ctx, struct nss_cmn_msg *ncm, __attribute__((unused))void *app_data)
61 struct nss_gre_redir_msg *ngrm = (struct nss_gre_redir_msg *)ncm;
69 BUG_ON(((ncm->interface < NSS_DYNAMIC_IF_START) || (ncm->interface >= (NSS_DYNAMIC_IF_START + NSS_MAX_DYNAMIC_INTERFACES))) &&
70 ncm->interface != NSS_GRE_REDIR_INTERFACE);
75 if (ncm->type >= NSS_GRE_REDIR_MAX_MSG_TYPES) {
76 nss_warning("%p: received invalid message %d for gre interface", nss_ctx, ncm->type);
80 if (ncm->len > sizeof(struct nss_gre_redir_msg)) {
81 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
89 if (ncm->response == NSS_CMM_RESPONSE_NOTIFY) {
90 ncm->cb = (uint32_t)nss_ctx->nss_top->if_rx_msg_callback[ncm->interface];
96 nss_core_log_msg_failures(nss_ctx, ncm);
98 switch (ncm->type) {
103 if (!(nss_is_dynamic_interface(ncm->interface))) {
104 nss_warning("%p: stats received for wrong interface %d\n", nss_ctx, ncm->interface);
108 nss_gre_redir_tunnel_update_stats(nss_ctx, ncm->interface, &ngrm->msg.stats_sync);
115 if (!ncm->cb) {
122 cb = (nss_gre_redir_msg_callback_t)ncm->cb;
123 ctx = nss_ctx->nss_top->subsys_dp_register[ncm->interface].ndev;
128 cb(ctx, ncm);
161 struct nss_cmn_msg *ncm = &msg->cm;
179 if (((ncm->interface < NSS_DYNAMIC_IF_START) || (ncm->interface >= (NSS_DYNAMIC_IF_START + NSS_MAX_DYNAMIC_INTERFACES))) &&
180 ncm->interface != NSS_GRE_REDIR_INTERFACE) {
181 nss_warning("%p: tx request for another interface: %d", nss_ctx, ncm->interface);
185 if (ncm->type > NSS_GRE_REDIR_MAX_MSG_TYPES) {
186 nss_warning("%p: message type out of range: %d", nss_ctx, ncm->type);
190 if (ncm->len > sizeof(struct nss_gre_redir_msg)) {
191 nss_warning("%p: message length is invalid: %d", nss_ctx, ncm->len);