{
struct gb_interface *intf = bundle->intf;
+ if (WARN_ON_ONCE(flags & GB_CONNECTION_FLAG_CORE_MASK))
+ flags &= ~GB_CONNECTION_FLAG_CORE_MASK;
+
return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id,
handler, flags);
}
gb_connection_create_offloaded(struct gb_bundle *bundle, u16 cport_id,
unsigned long flags)
{
- struct gb_interface *intf = bundle->intf;
-
flags |= GB_CONNECTION_FLAG_OFFLOADED;
- return _gb_connection_create(intf->hd, -1, intf, bundle, cport_id,
- NULL, flags);
+ return gb_connection_create_flags(bundle, cport_id, NULL, flags);
}
EXPORT_SYMBOL_GPL(gb_connection_create_offloaded);
#define GB_CONNECTION_FLAG_CDSI1 BIT(3)
#define GB_CONNECTION_FLAG_CONTROL BIT(4)
+#define GB_CONNECTION_FLAG_CORE_MASK GB_CONNECTION_FLAG_CONTROL
+
enum gb_connection_state {
GB_CONNECTION_STATE_DISABLED = 0,
GB_CONNECTION_STATE_ENABLED_TX = 1,